#At bzr+ssh://bk-internal.mysql.com/bzrroot/server/mysql-maria/ based on revid:guilhem@stripped
2737 Guilhem Bichot 2009-03-05
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.
modified:
storage/maria/ma_recovery.c
per-file messages:
storage/maria/ma_recovery.c
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.
=== modified file 'storage/maria/ma_recovery.c'
--- a/storage/maria/ma_recovery.c 2009-02-09 21:02:04 +0000
+++ b/storage/maria/ma_recovery.c 2009-03-05 16:47:31 +0000
@@ -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);
| Thread |
|---|
| • bzr commit into MySQL/Maria:mysql-maria branch (guilhem:2737) | Guilhem Bichot | 5 Mar |