From 7d0d9eab030aa634f9177670c58c1487af2db29d Mon Sep 17 00:00:00 2001 From: Nikita Malyavin Date: Tue, 25 Jul 2023 17:32:24 +0400 Subject: [PATCH] add to binlog_bytes_written for an initial description event --- sql/log.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/log.cc b/sql/log.cc index 2f9873598c226..171ebc03d85e9 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -3854,6 +3854,7 @@ bool Event_log::open(enum cache_type io_cache_type_arg) longlong bytes_written= write_description_event(BINLOG_CHECKSUM_ALG_OFF, false, true, false); + status_var_add(current_thd->status_var.binlog_bytes_written, bytes_written); return bytes_written < 0; }