sync before destruct

This commit is contained in:
zhenjial 2022-09-13 15:53:24 +08:00
parent 67c08e3e22
commit 5841d9e9b0

View File

@ -47,7 +47,9 @@ InputFormatErrorsLogger::InputFormatErrorsLogger(const ContextPtr & context)
InputFormatErrorsLogger::~InputFormatErrorsLogger()
{
write_buf->sync();
writer->finalize();
writer->flush();
write_buf->finalize();
}
void InputFormatErrorsLogger::logErrorImpl(ErrorEntry entry)