mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
use base/sleep.h
This commit is contained in:
parent
2b6238a5e5
commit
4225ba79f9
@ -4,7 +4,7 @@
|
|||||||
#include <Common/ZooKeeper/KeeperException.h>
|
#include <Common/ZooKeeper/KeeperException.h>
|
||||||
#include <Core/ServerUUID.h>
|
#include <Core/ServerUUID.h>
|
||||||
#include <Core/Settings.h>
|
#include <Core/Settings.h>
|
||||||
#include <chrono>
|
#include <base/sleep.h>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
|
||||||
namespace fs = std::filesystem;
|
namespace fs = std::filesystem;
|
||||||
@ -251,7 +251,7 @@ String DatabaseReplicatedDDLWorker::enqueueQueryImpl(const ZooKeeperPtr & zookee
|
|||||||
else if (code != Coordination::Error::ZNODEEXISTS)
|
else if (code != Coordination::Error::ZNODEEXISTS)
|
||||||
zkutil::KeeperMultiException::check(code, ops, res);
|
zkutil::KeeperMultiException::check(code, ops, res);
|
||||||
|
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
sleepForMilliseconds(50);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (counter_path.empty())
|
if (counter_path.empty())
|
||||||
|
Loading…
Reference in New Issue
Block a user