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

fix: meta unnecessary assert #332

Merged
merged 4 commits into from
Oct 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/dist/replication/meta_server/server_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,8 +949,10 @@ void server_state::query_configuration_by_index(

std::shared_ptr<app_state> &app = iter->second;
if (app->status != app_status::AS_AVAILABLE) {
dassert(app->status == app_status::AS_CREATING || app->status == app_status::AS_DROPPING,
"invalid status in exist app");
derror("invalid status(%s) in exist app(%s), app_id(%d)",
enum_to_string(app->status),
(app->app_name).c_str(),
app->app_id);
response.err =
(app->status == app_status::AS_CREATING ? ERR_BUSY_CREATING : ERR_BUSY_DROPPING);
return;
Expand Down