███████████, CompressedDataLoaderWithBackup: fixed timeouts and failover, added tunable parameters [#CONV-4046], [#CONV-4023].

This commit is contained in:
Alexey Milovidov 2012-01-31 19:52:51 +00:00
parent e388d1dbf9
commit 635f1638e2

View File

@ -92,7 +92,11 @@ private:
}
public:
CompressedWriteBuffer(WriteBuffer & out_, CompressionMethod::Enum method_ = CompressionMethod::QuickLZ) : out(out_), method(method_) {}
CompressedWriteBuffer(
WriteBuffer & out_,
CompressionMethod::Enum method_ = CompressionMethod::QuickLZ,
size_t buf_size = DBMS_DEFAULT_BUFFER_SIZE)
: BufferWithOwnMemory<WriteBuffer>(buf_size), out(out_), method(method_) {}
/// Объём сжатых данных
size_t getCompressedBytes()