summaryrefslogtreecommitdiff
path: root/src/mongo/db/sessions_collection_standalone.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-05-21 18:32:48 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-05-24 13:22:15 -0400
commite55bf669726e91b21b45964b33f6cced1dcc515f (patch)
treef2adda3cd56b388ba38f6fd33ccaa397246cd3fe /src/mongo/db/sessions_collection_standalone.cpp
parentb919fb48eb611b3c8cbba9d7f03f6df1d25d4cd5 (diff)
downloadmongo-e55bf669726e91b21b45964b33f6cced1dcc515f.tar.gz
SERVER-32198 Move the sessions collection namespace constant to NamespaceString
Diffstat (limited to 'src/mongo/db/sessions_collection_standalone.cpp')
-rw-r--r--src/mongo/db/sessions_collection_standalone.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/sessions_collection_standalone.cpp b/src/mongo/db/sessions_collection_standalone.cpp
index a7caf017fe1..ea980b86beb 100644
--- a/src/mongo/db/sessions_collection_standalone.cpp
+++ b/src/mongo/db/sessions_collection_standalone.cpp
@@ -49,7 +49,7 @@ Status SessionsCollectionStandalone::setupSessionsCollection(OperationContext* o
DBDirectClient client(opCtx);
auto cmd = generateCreateIndexesCmd();
BSONObj info;
- if (!client.runCommand(kSessionsNamespaceString.db().toString(), cmd, info)) {
+ if (!client.runCommand(NamespaceString::kLogicalSessionsNamespace.db().toString(), cmd, info)) {
return getStatusFromCommandResult(info);
}
@@ -59,25 +59,25 @@ Status SessionsCollectionStandalone::setupSessionsCollection(OperationContext* o
Status SessionsCollectionStandalone::refreshSessions(OperationContext* opCtx,
const LogicalSessionRecordSet& sessions) {
DBDirectClient client(opCtx);
- return doRefresh(kSessionsNamespaceString,
+ return doRefresh(NamespaceString::kLogicalSessionsNamespace,
sessions,
- makeSendFnForBatchWrite(kSessionsNamespaceString, &client));
+ makeSendFnForBatchWrite(NamespaceString::kLogicalSessionsNamespace, &client));
}
Status SessionsCollectionStandalone::removeRecords(OperationContext* opCtx,
const LogicalSessionIdSet& sessions) {
DBDirectClient client(opCtx);
- return doRemove(kSessionsNamespaceString,
+ return doRemove(NamespaceString::kLogicalSessionsNamespace,
sessions,
- makeSendFnForBatchWrite(kSessionsNamespaceString, &client));
+ makeSendFnForBatchWrite(NamespaceString::kLogicalSessionsNamespace, &client));
}
StatusWith<LogicalSessionIdSet> SessionsCollectionStandalone::findRemovedSessions(
OperationContext* opCtx, const LogicalSessionIdSet& sessions) {
DBDirectClient client(opCtx);
- return doFetch(kSessionsNamespaceString,
+ return doFetch(NamespaceString::kLogicalSessionsNamespace,
sessions,
- makeFindFnForCommand(kSessionsNamespaceString, &client));
+ makeFindFnForCommand(NamespaceString::kLogicalSessionsNamespace, &client));
}
Status SessionsCollectionStandalone::removeTransactionRecords(OperationContext* opCtx,