add finalize calls in utils

This commit is contained in:
Sema Checherinda 2024-11-12 12:50:57 +01:00
parent 4d8bb01a77
commit 8a433a2222
2 changed files with 7 additions and 2 deletions

View File

@ -48,6 +48,8 @@ static void checkByCompressedReadBuffer(const std::string & mrk_path, const std:
out << ", decompressed size " << bin_in.available();
out << ".\n" << DB::flush;
out.finalize();
}
}

View File

@ -10,7 +10,10 @@ int main(int, char **)
using namespace DB;
ReadBufferFromFileDescriptor rb(STDIN_FILENO);
WriteBufferFromFileDescriptor wb(STDOUT_FILENO);
WriteBufferValidUTF8 utf8_b(wb);
copyData(rb, utf8_b);
{
WriteBufferValidUTF8 utf8_b(wb);
copyData(rb, utf8_b);
}
wb.finalize();
return 0;
}