From 30352f096dcae6792320a620e957ee6da333dcd2 Mon Sep 17 00:00:00 2001 From: zhang2014 Date: Tue, 15 Sep 2020 22:59:21 +0800 Subject: [PATCH] Init buffer in constructor --- src/IO/MySQLBinlogEventReadBuffer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/IO/MySQLBinlogEventReadBuffer.cpp b/src/IO/MySQLBinlogEventReadBuffer.cpp index 2fd8fdca171..0680e075af9 100644 --- a/src/IO/MySQLBinlogEventReadBuffer.cpp +++ b/src/IO/MySQLBinlogEventReadBuffer.cpp @@ -12,6 +12,7 @@ namespace ErrorCodes MySQLBinlogEventReadBuffer::MySQLBinlogEventReadBuffer(ReadBuffer & in_) : ReadBuffer(nullptr, 0, 0), in(in_) { + nextIfAtEnd(); } bool MySQLBinlogEventReadBuffer::nextImpl()