Fix style and bayan

This commit is contained in:
alesapin 2021-02-26 09:59:40 +03:00
parent 84102a22e7
commit 56d9d99d1c
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ clickhouse-client --query "SHOW TABLES FROM test"
stop
# TODO remove me when persistent snapshots will be ready
rm -fr /var/lib/clickhouse/coordination :||
rm -fr /var/lib/clickhouse/coordination ||:
start
clickhouse-client --query "SELECT 'Server successfuly started'" > /test_output/alive_check.txt || echo 'Server failed to start' > /test_output/alive_check.txt

View File

@ -40,7 +40,7 @@ void NuKeeperServer::startup()
nuraft::raft_params params;
if (single_server)
{
/// Don't make sence in single server mode
/// Don't make sense in single server mode
params.heart_beat_interval_ = 0;
params.election_timeout_lower_bound_ = 0;
params.election_timeout_upper_bound_ = 0;
@ -198,7 +198,7 @@ nuraft::cb_func::ReturnCode NuKeeperServer::callbackFunc(nuraft::cb_func::Type t
}
case nuraft::cb_func::InitialBatchCommited:
{
if (isLeader()) /// We have commited our log store and we are leader, ready to serve requests.
if (isLeader()) /// We have committed our log store and we are leader, ready to serve requests.
set_initialized();
return nuraft::cb_func::ReturnCode::Ok;
}