summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction_history_iterator_test.cpp
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2017-07-17 18:51:05 -0400
committerJack Mulrow <jack.mulrow@mongodb.com>2017-07-19 10:52:38 -0400
commit57c63852d129681f84c2c35b4078f44e2426f53f (patch)
treeac69bf225b95f1766361614518b93f88d528497a /src/mongo/db/transaction_history_iterator_test.cpp
parent9d8bc8dc6c8d1dc92bbf466f27783464ed4f5704 (diff)
downloadmongo-57c63852d129681f84c2c35b4078f44e2426f53f.tar.gz
SERVER-28918 Move rsOplogName to NamespaceString
Diffstat (limited to 'src/mongo/db/transaction_history_iterator_test.cpp')
-rw-r--r--src/mongo/db/transaction_history_iterator_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/transaction_history_iterator_test.cpp b/src/mongo/db/transaction_history_iterator_test.cpp
index 767d1f03b56..a31b5eb8fa6 100644
--- a/src/mongo/db/transaction_history_iterator_test.cpp
+++ b/src/mongo/db/transaction_history_iterator_test.cpp
@@ -35,6 +35,7 @@
#include "mongo/db/curop.h"
#include "mongo/db/db_raii.h"
#include "mongo/db/dbdirectclient.h"
+#include "mongo/db/namespace_string.h"
#include "mongo/db/operation_context.h"
#include "mongo/db/repl/oplog.h"
#include "mongo/db/repl/oplog_entry.h"
@@ -68,7 +69,8 @@ public:
// Note: internal code does not allow implicit creation of non-capped oplog collection.
DBDirectClient client(opCtx());
- ASSERT_TRUE(client.createCollection(repl::rsOplogName, 1024 * 1024, true));
+ ASSERT_TRUE(
+ client.createCollection(NamespaceString::kRsOplogNamespace.ns(), 1024 * 1024, true));
}
void tearDown() override {
@@ -84,7 +86,7 @@ public:
* fixDocumentForInsert.
*/
void insertOplogEntry(const repl::OplogEntry newOplog) {
- AutoGetCollection autoColl(opCtx(), NamespaceString(repl::rsOplogName), MODE_IX);
+ AutoGetCollection autoColl(opCtx(), NamespaceString::kRsOplogNamespace, MODE_IX);
auto coll = autoColl.getCollection();
ASSERT_TRUE(coll != nullptr);