mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
compressor: remove extra check for seeking of input
This commit is contained in:
parent
4165a58ce4
commit
c0fa2fb6e6
@ -169,11 +169,7 @@ int mainEntryClickHouseCompressor(int argc, char ** argv)
|
||||
|
||||
if (offset_in_compressed_file || offset_in_decompressed_block)
|
||||
{
|
||||
if (!options.count("input"))
|
||||
{
|
||||
throw DB::Exception("--offset-in-compressed-file/--offset-in-decompressed-block requires --input", DB::ErrorCodes::BAD_ARGUMENTS);
|
||||
}
|
||||
CompressedReadBufferFromFile compressed_file(options["input"].as<std::string>(), 0, 0, 0);
|
||||
CompressedReadBufferFromFile compressed_file(std::move(rb));
|
||||
compressed_file.seek(offset_in_compressed_file, offset_in_decompressed_block);
|
||||
copyData(compressed_file, *wb);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user