Avoid preprocessing if Keeper leader is not ready

This commit is contained in:
Antonio Andelic 2023-12-20 10:20:23 +00:00
parent d4e04fc49a
commit 3cc8358b89

View File

@ -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);