Skip to content

Commit

Permalink
slove the cordump for monitor (OpenAtomFoundation#1804)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixficsol authored Jul 24, 2023
1 parent 8b4a71c commit 9349d65
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pika_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1108,13 +1108,11 @@ void PikaServer::AddMonitorMessage(const std::string& monitor_message) {
it = pika_monitor_clients_.erase(it);
}
}

lock.unlock(); // SendReply without lock

for (const auto& cli : clients) {
cli->WriteResp(msg);
cli->SendReply();
}
lock.unlock(); // SendReply without lock
}

void PikaServer::AddMonitorClient(const std::shared_ptr<PikaClientConn>& client_ptr) {
Expand Down

0 comments on commit 9349d65

Please sign in to comment.