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

Commit

Permalink
tiny improve for updateSessionsToMeta (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
jievince committed Jul 13, 2021
1 parent 232aee5 commit c3f78f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/session/GraphSessionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ void GraphSessionManager::updateSessionsToMeta() {
auto& killedQueriesForEachSession = *resp.value().killed_queries_ref();
for (auto& killedQueries : killedQueriesForEachSession) {
auto sessionId = killedQueries.first;
auto session = activeSessions_.find(sessionId);
if (session == activeSessions_.end()) {
continue;
}
for (auto& desc : killedQueries.second) {
auto session = activeSessions_.find(sessionId);
if (session == activeSessions_.end()) {
continue;
}
if (desc.second.get_graph_addr() !=
session->second->getGraphAddr()) {
continue;
Expand Down

0 comments on commit c3f78f9

Please sign in to comment.