mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
dfield_print_raw(): Make static. Print at most 1000 bytes to avoid
excessive space usage of the error log.
This commit is contained in:
parent
7780500c01
commit
ac53e5ead8
2 changed files with 8 additions and 11 deletions
|
@ -433,15 +433,20 @@ dfield_print_also_hex(
|
|||
|
||||
/*****************************************************************
|
||||
Print a dfield value using ut_print_buf. */
|
||||
|
||||
static
|
||||
void
|
||||
dfield_print_raw(
|
||||
/*=============*/
|
||||
FILE* f, /* in: output stream */
|
||||
dfield_t* dfield) /* in: dfield */
|
||||
{
|
||||
if (dfield->len != UNIV_SQL_NULL) {
|
||||
ut_print_buf(f, dfield->data, dfield->len);
|
||||
ulint len = dfield->len;
|
||||
if (len != UNIV_SQL_NULL) {
|
||||
ulint print_len = ut_min(len, 1000);
|
||||
ut_print_buf(f, dfield->data, print_len);
|
||||
if (len != print_len) {
|
||||
fprintf(f, "(total %lu bytes)", (ulong) len);
|
||||
}
|
||||
} else {
|
||||
fputs(" SQL NULL", f);
|
||||
}
|
||||
|
|
|
@ -320,14 +320,6 @@ void
|
|||
dfield_print_also_hex(
|
||||
/*==================*/
|
||||
dfield_t* dfield); /* in: dfield */
|
||||
/*****************************************************************
|
||||
Print a dfield value using ut_print_buf. */
|
||||
|
||||
void
|
||||
dfield_print_raw(
|
||||
/*=============*/
|
||||
FILE* f, /* in: output stream */
|
||||
dfield_t* dfield); /* in: dfield */
|
||||
/**************************************************************
|
||||
The following function prints the contents of a tuple. */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue