Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
feat(split): add child partition execute mutation (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
hycdong authored Mar 15, 2021
1 parent d718560 commit 7956f7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/replica/replica.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,12 @@ void replica::execute_mutation(mutation_ptr &mu)
dassert(_private_log != nullptr, "");
}
break;
case partition_status::PS_PARTITION_SPLIT:
if (_split_states.is_caught_up) {
dcheck_eq(_app->last_committed_decree() + 1, d);
err = _app->apply_mutation(mu);
}
break;
case partition_status::PS_ERROR:
break;
default:
Expand Down

0 comments on commit 7956f7b

Please sign in to comment.