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

Commit

Permalink
Do not update session if the session in meta is newer.
Browse files Browse the repository at this point in the history
  • Loading branch information
CPWstatic committed Jun 22, 2021
1 parent e4873cc commit dde015e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/meta/processors/sessionMan/SessionManagerProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ void UpdateSessionsProcessor::process(const cpp2::UpdateSessionsReq& req) {
killedQueries[sessionId] = std::move(killedQueriesInCurrentSession);
}

if (sessionInMeta.get_update_time() > session.get_update_time()) {
continue;
}

data.emplace_back(MetaServiceUtils::sessionKey(sessionId),
MetaServiceUtils::sessionVal(session));
}
Expand Down

0 comments on commit dde015e

Please sign in to comment.