mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 17:33:44 +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. */
|
Print a dfield value using ut_print_buf. */
|
||||||
|
static
|
||||||
void
|
void
|
||||||
dfield_print_raw(
|
dfield_print_raw(
|
||||||
/*=============*/
|
/*=============*/
|
||||||
FILE* f, /* in: output stream */
|
FILE* f, /* in: output stream */
|
||||||
dfield_t* dfield) /* in: dfield */
|
dfield_t* dfield) /* in: dfield */
|
||||||
{
|
{
|
||||||
if (dfield->len != UNIV_SQL_NULL) {
|
ulint len = dfield->len;
|
||||||
ut_print_buf(f, dfield->data, 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 {
|
} else {
|
||||||
fputs(" SQL NULL", f);
|
fputs(" SQL NULL", f);
|
||||||
}
|
}
|
||||||
|
|
|
@ -320,14 +320,6 @@ void
|
||||||
dfield_print_also_hex(
|
dfield_print_also_hex(
|
||||||
/*==================*/
|
/*==================*/
|
||||||
dfield_t* dfield); /* in: dfield */
|
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. */
|
The following function prints the contents of a tuple. */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue