summaryrefslogtreecommitdiff
path: root/src/mongo/db/sessions_collection_rs.cpp
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2017-08-15 18:03:59 -0400
committersamantharitter <samantha.ritter@10gen.com>2017-08-18 08:49:39 -0400
commitcacf36cb6647c9f3f6e895c7face718a54725567 (patch)
tree8c177186fadf8b109e5edac6e8b9f501fbad4966 /src/mongo/db/sessions_collection_rs.cpp
parent854cc3ca62115c0296e27c75ff017a11614254c6 (diff)
downloadmongo-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.cpp17
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) {