mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
fix style
This commit is contained in:
parent
f06678ee6c
commit
d8f0ce92af
@ -690,15 +690,9 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isTryLimitReached() const
|
bool isTryLimitReached() const { return failed_tries_count >= kTryLimit; }
|
||||||
{
|
|
||||||
return failed_tries_count >= kTryLimit;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool isCompleted() const
|
bool isCompleted() const { return is_completed; }
|
||||||
{
|
|
||||||
return is_completed;
|
|
||||||
}
|
|
||||||
|
|
||||||
void perform()
|
void perform()
|
||||||
{
|
{
|
||||||
@ -718,13 +712,11 @@ public:
|
|||||||
|
|
||||||
switch (code)
|
switch (code)
|
||||||
{
|
{
|
||||||
case Coordination::Error::ZOK:
|
case Coordination::Error::ZOK: {
|
||||||
{
|
|
||||||
is_completed = true;
|
is_completed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
case Coordination::Error::ZBADVERSION:
|
case Coordination::Error::ZBADVERSION: {
|
||||||
{
|
|
||||||
++failed_tries_count;
|
++failed_tries_count;
|
||||||
|
|
||||||
if (isTryLimitReached())
|
if (isTryLimitReached())
|
||||||
|
Loading…
Reference in New Issue
Block a user