diff options
author | samantharitter <samantha.ritter@10gen.com> | 2017-08-15 18:03:59 -0400 |
---|---|---|
committer | samantharitter <samantha.ritter@10gen.com> | 2017-08-18 08:49:39 -0400 |
commit | cacf36cb6647c9f3f6e895c7face718a54725567 (patch) | |
tree | 8c177186fadf8b109e5edac6e8b9f501fbad4966 /src/mongo/db/sessions_collection_standalone.cpp | |
parent | 854cc3ca62115c0296e27c75ff017a11614254c6 (diff) | |
download | mongo-cacf36cb6647c9f3f6e895c7face718a54725567.tar.gz |
SERVER-29202 Remove unused fetch methods from logical session cache
Diffstat (limited to 'src/mongo/db/sessions_collection_standalone.cpp')
-rw-r--r-- | src/mongo/db/sessions_collection_standalone.cpp | 16 |
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) { |