diff --git a/dbms/src/IO/WriteBufferFromVector.h b/dbms/src/IO/WriteBufferFromVector.h index 3b6f75f354e..70e6ef5e36e 100644 --- a/dbms/src/IO/WriteBufferFromVector.h +++ b/dbms/src/IO/WriteBufferFromVector.h @@ -52,6 +52,8 @@ public: void finish() { + if (is_finished) + return; is_finished = true; vector.resize( ((position() - reinterpret_cast(vector.data()))