mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
Add recompression flag in ReplicatedEntry
This commit is contained in:
parent
adc18f4d3f
commit
b20a0bc254
@ -36,6 +36,9 @@ void ReplicatedMergeTreeLogEntryData::writeText(WriteBuffer & out) const
|
||||
out << s << '\n';
|
||||
out << "into\n" << new_part_name;
|
||||
out << "\ndeduplicate: " << deduplicate;
|
||||
/// For backward compatibility write only if enabled
|
||||
if (recompress)
|
||||
out << "\nrecompress: " << recompress;
|
||||
break;
|
||||
|
||||
case DROP_RANGE:
|
||||
@ -149,7 +152,14 @@ void ReplicatedMergeTreeLogEntryData::readText(ReadBuffer & in)
|
||||
}
|
||||
in >> new_part_name;
|
||||
if (format_version >= 4)
|
||||
{
|
||||
in >> "\ndeduplicate: " >> deduplicate;
|
||||
in >> "\n";
|
||||
if (in.eof())
|
||||
trailing_newline_found = true;
|
||||
else if (checkString("recompress\n", in))
|
||||
in >> recompress;
|
||||
}
|
||||
}
|
||||
else if (type_str == "drop" || type_str == "detach")
|
||||
{
|
||||
|
@ -79,6 +79,7 @@ struct ReplicatedMergeTreeLogEntryData
|
||||
|
||||
Strings source_parts;
|
||||
bool deduplicate = false; /// Do deduplicate on merge
|
||||
bool recompress = false; /// Recompress parts on merge
|
||||
String column_name;
|
||||
String index_name;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user