mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Avoid preprocessing if Keeper leader is not ready
This commit is contained in:
parent
d4e04fc49a
commit
3cc8358b89
@ -859,6 +859,10 @@ nuraft::cb_func::ReturnCode KeeperServer::callbackFunc(nuraft::cb_func::Type typ
|
||||
initial_batch_committed = true;
|
||||
return nuraft::cb_func::ReturnCode::Ok;
|
||||
}
|
||||
case nuraft::cb_func::PreAppendLogLeader:
|
||||
{
|
||||
return nuraft::cb_func::ReturnCode::ReturnNull;
|
||||
}
|
||||
case nuraft::cb_func::PreAppendLogFollower:
|
||||
{
|
||||
const auto & entry = *static_cast<LogEntryPtr *>(param->ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user