From b3a8c8ce5f7d525e95d8de21948c9b695c28057b Mon Sep 17 00:00:00 2001 From: Chandana R Date: Fri, 20 Mar 2026 15:41:49 +0530 Subject: [PATCH] MDEV-20749 Improve error reporting for mysqlbinlog --flashback --- sql/log_event_client.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sql/log_event_client.cc b/sql/log_event_client.cc index 03e319076c7a6..178725d4e1a60 100644 --- a/sql/log_event_client.cc +++ b/sql/log_event_client.cc @@ -1132,7 +1132,11 @@ void Rows_log_event::change_to_flashback_event(PRINT_EVENT_INFO *print_event_inf &m_cols, value, (const uchar*) "", TRUE))) { - fprintf(stderr, "\nError row length: %zu\n", length1); + fprintf(stderr, + "\nError parsing row event in mysqlbinlog --flashback:\n" + " Row length: %zu\n" + " Expected: valid row data (> 0 length)\n", + length1); exit(1); } value+= length1; @@ -1155,7 +1159,11 @@ void Rows_log_event::change_to_flashback_event(PRINT_EVENT_INFO *print_event_inf &m_cols, value, (const uchar*) "", TRUE))) { - fprintf(stderr, "\nError row length: %zu\n", length2); + fprintf(stderr, + "\nError parsing row event in mysqlbinlog --flashback:\n" + " Row length: %zu\n" + " Expected: valid row data (> 0 length)\n", + length2); exit(1); } value+= length2;