Flush buffer when WriteBufferFromHDFS's destructor is called

This commit is contained in:
eejoin 2019-06-19 19:50:34 +08:00
parent 9bdbd84263
commit f3e0c60b89

View File

@ -92,6 +92,14 @@ void WriteBufferFromHDFS::sync()
WriteBufferFromHDFS::~WriteBufferFromHDFS()
{
try
{
next();
}
catch (...)
{
tryLogCurrentException(__PRETTY_FUNCTION__);
}
}
}