mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fix style and bayan
This commit is contained in:
parent
84102a22e7
commit
56d9d99d1c
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user