mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
add finalize calls in utils
This commit is contained in:
parent
4d8bb01a77
commit
8a433a2222
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
wb.finalize();
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user