Skip to content

Commit

Permalink
Update ZooKeeperImpl.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tavplubix committed Feb 7, 2024
1 parent 82cb09c commit 328359d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Common/ZooKeeper/ZooKeeperImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ ZooKeeper::ZooKeeper(
keeper_feature_flags.logFlags(log);

ProfileEvents::increment(ProfileEvents::ZooKeeperInit);

/// Avoid stale reads after connecting
sync("/", [](const SyncResponse &){});
}
catch (...)
{
Expand Down

0 comments on commit 328359d

Please sign in to comment.