ha_innobase.cc, trx0trx.h, lock0lock.c, trx0trx.c:

Add some more safety margin to buffer sizes in prints
This commit is contained in:
heikki@hundin.mysql.fi 2002-08-09 15:34:23 +03:00
parent 933417c1fe
commit edf3929cd5
4 changed files with 6 additions and 6 deletions

View file

@ -262,7 +262,7 @@ void
trx_print(
/*======*/
char* buf, /* in/out: buffer where to print, must be at least
500 bytes */
800 bytes */
trx_t* trx); /* in: transaction */

View file

@ -3625,7 +3625,7 @@ lock_print_info(
trx = UT_LIST_GET_FIRST(trx_sys->mysql_trx_list);
while (trx) {
if (buf_end - buf < 600) {
if (buf_end - buf < 900) {
return;
}
@ -3662,7 +3662,7 @@ loop:
return;
}
if (buf_end - buf < 600) {
if (buf_end - buf < 900) {
return;
}

View file

@ -1465,7 +1465,7 @@ void
trx_print(
/*======*/
char* buf, /* in/out: buffer where to print, must be at least
500 bytes */
800 bytes */
trx_t* trx) /* in: transaction */
{
char* start_of_line;

View file

@ -260,7 +260,7 @@ void
innobase_mysql_print_thd(
/*=====================*/
char* buf, /* in/out: buffer where to print, must be at least
300 bytes */
400 bytes */
void* input_thd)/* in: pointer to a MySQL THD object */
{
THD* thd;
@ -338,7 +338,7 @@ innobase_mysql_print_thd(
buf=strnmov(buf, thd->query, 150);
}
*buf='\n';
/* Here we should add '\0' to the nd of output to mark its end */
/* Here we should add '\0' to the end of output to mark its end */
#endif
}
}