summaryrefslogtreecommitdiff
path: root/src/mongo/db/sessions_collection_standalone.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/sessions_collection_standalone.cpp')
-rw-r--r--src/mongo/db/sessions_collection_standalone.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mongo/db/sessions_collection_standalone.cpp b/src/mongo/db/sessions_collection_standalone.cpp
index bbff1db1757..79f36e66fd6 100644
--- a/src/mongo/db/sessions_collection_standalone.cpp
+++ b/src/mongo/db/sessions_collection_standalone.cpp
@@ -44,22 +44,6 @@ BSONObj lsidQuery(const LogicalSessionId& lsid) {
}
} // namespace
-StatusWith<LogicalSessionRecord> SessionsCollectionStandalone::fetchRecord(
- OperationContext* opCtx, const LogicalSessionId& lsid) {
- DBDirectClient client(opCtx);
- auto cursor = client.query(kSessionsFullNS.toString(), lsidQuery(lsid), 1);
- if (!cursor->more()) {
- return {ErrorCodes::NoSuchSession, "No matching record in the sessions collection"};
- }
-
- try {
- IDLParserErrorContext ctx("LogicalSessionRecord");
- return LogicalSessionRecord::parse(ctx, cursor->next());
- } catch (...) {
- return exceptionToStatus();
- }
-}
-
Status SessionsCollectionStandalone::refreshSessions(OperationContext* opCtx,
const LogicalSessionRecordSet& sessions,
Date_t refreshTime) {