summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/session_update_tracker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/session_update_tracker.cpp')
-rw-r--r--src/mongo/db/repl/session_update_tracker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/repl/session_update_tracker.cpp b/src/mongo/db/repl/session_update_tracker.cpp
index 9988a3832b9..5aa2152f5a0 100644
--- a/src/mongo/db/repl/session_update_tracker.cpp
+++ b/src/mongo/db/repl/session_update_tracker.cpp
@@ -65,9 +65,9 @@ void SessionUpdateTracker::_updateSessionInfo(const OplogEntry& entry) {
const auto& lsid = sessionInfo.getSessionId();
invariant(lsid);
- auto iter = _sessionsToUpdate.find(lsid->getId());
+ auto iter = _sessionsToUpdate.find(*lsid);
if (iter == _sessionsToUpdate.end()) {
- _sessionsToUpdate.emplace(lsid->getId(), entry);
+ _sessionsToUpdate.emplace(*lsid, entry);
return;
}
@@ -77,7 +77,7 @@ void SessionUpdateTracker::_updateSessionInfo(const OplogEntry& entry) {
return;
}
- severe() << "Entry for session " << lsid->getId() << " has txnNumber "
+ severe() << "Entry for session " << lsid->toBSON() << " has txnNumber "
<< *sessionInfo.getTxnNumber() << " < " << *existingSessionInfo.getTxnNumber();
severe() << "New oplog entry: " << redact(entry.toString());
severe() << "Existing oplog entry: " << redact(iter->second.toString());
@@ -125,7 +125,7 @@ std::vector<OplogEntry> SessionUpdateTracker::_flushForQueryPredicate(
const BSONObj& queryPredicate) {
auto idField = queryPredicate["_id"].Obj();
auto lsid = LogicalSessionId::parse(IDLParserErrorContext("lsidInOplogQuery"), idField);
- auto iter = _sessionsToUpdate.find(lsid.getId());
+ auto iter = _sessionsToUpdate.find(lsid);
if (iter == _sessionsToUpdate.end()) {
return {};