diff --git a/src/IO/MySQLBinlogEventReadBuffer.cpp b/src/IO/MySQLBinlogEventReadBuffer.cpp index 2fd8fdca17..0680e075af 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()