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

Commit

Permalink
Merge branch 'master' into fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bright-starry-sky authored Jul 5, 2021
2 parents f988991 + c363760 commit 6dba93b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/meta/processors/sessionMan/SessionManagerProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void CreateSessionProcessor::process(const cpp2::CreateSessionReq& req) {
// The sessionId is generated by microsecond timestamp
session.set_session_id(time::WallClock::fastNowInMicroSec());
session.set_create_time(session.get_session_id());
session.set_update_time(session.get_create_time());
session.set_update_time(0);
session.set_user_name(user);
session.set_graph_addr(req.get_graph_addr());
session.set_client_ip(req.get_client_ip());
Expand Down Expand Up @@ -87,6 +87,9 @@ void UpdateSessionsProcessor::process(const cpp2::UpdateSessionsReq& req) {
}

if (sessionInMeta.get_update_time() > session.get_update_time()) {
VLOG(3) << "The session id: " << session.get_session_id()
<< ", the new update time: " << session.get_update_time()
<< ", the old update time: " << sessionInMeta.get_update_time();
continue;
}

Expand Down

0 comments on commit 6dba93b

Please sign in to comment.