Skip to content

Commit

Permalink
fix: fix lock in notify_stop_split (XiaoMi#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
hycdong authored and zhangyifan27 committed Feb 4, 2021
1 parent 8b53ed2 commit d1fa9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta/meta_split_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ void meta_split_service::notify_stop_split(notify_stop_split_rpc rpc)
{
const auto &request = rpc.request();
auto &response = rpc.response();
zauto_write_lock(app_lock());
zauto_write_lock l(app_lock());
std::shared_ptr<app_state> app = _state->get_app(request.app_name);
dassert_f(app != nullptr, "app({}) is not existed", request.app_name);
dassert_f(app->is_stateful, "app({}) is stateless currently", request.app_name);
Expand Down

0 comments on commit d1fa9a0

Please sign in to comment.