mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
commit
3b952aff7d
@ -1764,7 +1764,13 @@ ReplicatedMergeTreeMergePredicate::ReplicatedMergeTreeMergePredicate(
|
|||||||
Strings partitions = zookeeper->getChildren(queue.replica_path + "/parts");
|
Strings partitions = zookeeper->getChildren(queue.replica_path + "/parts");
|
||||||
for (const String & partition : partitions)
|
for (const String & partition : partitions)
|
||||||
{
|
{
|
||||||
auto header = ReplicatedMergeTreePartHeader::fromString(zookeeper->get(queue.replica_path + "/parts/" + partition));
|
auto part_str = zookeeper->get(queue.replica_path + "/parts/" + partition);
|
||||||
|
if (part_str.empty())
|
||||||
|
{
|
||||||
|
/// use_minimalistic_part_header_in_zookeeper
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
auto header = ReplicatedMergeTreePartHeader::fromString(part_str);
|
||||||
if (header.getBlockID())
|
if (header.getBlockID())
|
||||||
{
|
{
|
||||||
ReplicatedMergeTreeBlockEntry block(zookeeper->get(queue.zookeeper_path + "/blocks/" + *header.getBlockID()));
|
ReplicatedMergeTreeBlockEntry block(zookeeper->get(queue.zookeeper_path + "/blocks/" + *header.getBlockID()));
|
||||||
|
Loading…
Reference in New Issue
Block a user