mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
References MDEV-4404 - Added log message to catch information of log event corruption
This commit is contained in:
@@ -304,6 +304,10 @@ unpack_row(Relay_log_info const *rli,
|
||||
uint16 const metadata= tabledef->field_metadata(i);
|
||||
#ifndef DBUG_OFF
|
||||
uchar const *const old_pack_ptr= pack_ptr;
|
||||
#else
|
||||
#if WITH_WSREP
|
||||
uchar const *const old_pack_ptr= pack_ptr;
|
||||
#endif
|
||||
#endif
|
||||
pack_ptr= f->unpack(f->ptr, pack_ptr, row_buffer_end, metadata);
|
||||
DBUG_PRINT("debug", ("field: %s; metadata: 0x%x;"
|
||||
@@ -313,6 +317,17 @@ unpack_row(Relay_log_info const *rli,
|
||||
(int) (pack_ptr - old_pack_ptr)));
|
||||
if (!pack_ptr)
|
||||
{
|
||||
/* Debug message to troubleshoot bug:
|
||||
https://mariadb.atlassian.net/browse/MDEV-4404
|
||||
*/
|
||||
WSREP_WARN("ROW event unpack field: %s metadata: 0x%x;"
|
||||
" pack_ptr: 0x%lx; conv_table %p conv_field %p table %s"
|
||||
" row_buffer_end: 0x%lx",
|
||||
f->field_name, metadata,
|
||||
(ulong) old_pack_ptr, conv_table, conv_field,
|
||||
(table_found) ? "found" : "not found", (ulong)row_buffer_end
|
||||
);
|
||||
|
||||
rli->report(ERROR_LEVEL, ER_SLAVE_CORRUPT_EVENT,
|
||||
"Could not read field '%s' of table '%s.%s'",
|
||||
f->field_name, table->s->db.str,
|
||||
|
||||
Reference in New Issue
Block a user