mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #43663 from ClickHouse/fix-flaky-keeper-recovery
Fix data race in `Keeper` snapshot
This commit is contained in:
commit
080618a91e
@ -194,6 +194,9 @@ void KeeperStorageSnapshot::serialize(const KeeperStorageSnapshot & snapshot, Wr
|
||||
// write only the root system path because of digest
|
||||
if (Coordination::matchPath(path.toView(), keeper_system_path) == Coordination::PathMatchResult::IS_CHILD)
|
||||
{
|
||||
if (counter == snapshot.snapshot_container_size - 1)
|
||||
break;
|
||||
|
||||
++it;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user