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 split check when drop app (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
hycdong authored Mar 2, 2021
1 parent 610c356 commit ded2abd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/meta/server_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,11 @@ void server_state::drop_app(dsn::message_ex *msg)
} else {
switch (app->status) {
case app_status::AS_AVAILABLE:
if (app->splitting()) {
// not drop splitting app
response.err = ERR_SPLITTING;
break;
}
do_dropping = true;
app->status = app_status::AS_DROPPING;
app->drop_second = dsn_now_ms() / 1000;
Expand Down

0 comments on commit ded2abd

Please sign in to comment.