mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
In maria_recovery.trace we can see the Query which generated this record, but this printed too much
(query is not 0-terminated in the log record): limit it to the true query's size.
This commit is contained in:
parent
8a715a5990
commit
a15d25f07e
1 changed files with 2 additions and 1 deletions
|
@ -2031,7 +2031,8 @@ prototype_redo_exec_hook(DEBUG_INFO)
|
|||
data= log_record_buffer.str + 1;
|
||||
switch (debug_info) {
|
||||
case LOGREC_DEBUG_INFO_QUERY:
|
||||
tprint(tracef, "Query: %s\n", (char*) data);
|
||||
tprint(tracef, "Query: %.*s\n", rec->record_length - 1,
|
||||
(char*) data);
|
||||
break;
|
||||
default:
|
||||
DBUG_ASSERT(0);
|
||||
|
|
Loading…
Reference in a new issue