Skip to content

Commit

Permalink
Fix session create time
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee committed Aug 7, 2024
1 parent 945b0a6 commit 7ef1f17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/meta/processors/session/SessionManagerProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ void CreateSessionProcessor::process(const cpp2::CreateSessionReq &req) {
auto user = req.get_user();
cpp2::Session session;
// The sessionId is generated by microsecond timestamp
session.session_id_ref() = folly::Random::rand64();
session.create_time_ref() = session.get_session_id();
session.session_id_ref() = static_cast<int64_t>(folly::Random::rand64());
session.create_time_ref() = time::WallClock::fastNowInMicroSec();
session.update_time_ref() = session.get_create_time();
session.user_name_ref() = user;
session.graph_addr_ref() = req.get_graph_addr();
Expand Down

0 comments on commit 7ef1f17

Please sign in to comment.