diff --git a/libbinlogevents/src/compression/zstd_comp.cpp b/libbinlogevents/src/compression/zstd_comp.cpp index 31e6896731e..c3b5fcb886a 100644 --- a/libbinlogevents/src/compression/zstd_comp.cpp +++ b/libbinlogevents/src/compression/zstd_comp.cpp @@ -109,7 +109,7 @@ bool Zstd_comp::close() { do { ret = ZSTD_flushStream(m_ctx, &m_obuf); if (ZSTD_isError(ret)) goto err; - m_buffer_cursor = static_cast(m_obuf.dst) + m_obuf.pos; + //m_buffer_cursor = static_cast(m_obuf.dst) + m_obuf.pos; // end the stream ret = ZSTD_endStream(m_ctx, &m_obuf);