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_rs.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_rs.cpp')
-rw-r--r-- | src/mongo/db/sessions_collection_rs.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mongo/db/sessions_collection_rs.cpp b/src/mongo/db/sessions_collection_rs.cpp index 58dc3bd0ad0..f153d31f385 100644 --- a/src/mongo/db/sessions_collection_rs.cpp +++ b/src/mongo/db/sessions_collection_rs.cpp @@ -98,23 +98,6 @@ Status runIfStandaloneOrPrimary(OperationContext* opCtx, Callback callback) { } // namespace -StatusWith<LogicalSessionRecord> SessionsCollectionRS::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 SessionsCollectionRS::refreshSessions(OperationContext* opCtx, const LogicalSessionRecordSet& sessions, Date_t refreshTime) { |