Skip to content

Commit

Permalink
Merge pull request #58375 from ClickHouse/backport/23.11/58308
Browse files Browse the repository at this point in the history
Backport #58308 to 23.11: Handle another case for preprocessing in Keeper
  • Loading branch information
robot-clickhouse-ci-2 committed Dec 30, 2023
2 parents cd0713c + e657ec8 commit 41f4d54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Coordination/KeeperServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,12 @@ nuraft::cb_func::ReturnCode KeeperServer::callbackFunc(nuraft::cb_func::Type typ

switch (type)
{
case nuraft::cb_func::PreAppendLogLeader:
{
/// we cannot preprocess anything new as leader because we don't have up-to-date in-memory state
/// until we preprocess all stored logs
return nuraft::cb_func::ReturnCode::ReturnNull;
}
case nuraft::cb_func::InitialBatchCommited:
{
preprocess_logs();
Expand Down

0 comments on commit 41f4d54

Please sign in to comment.