summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_test.cpp
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2019-04-22 14:48:14 -0400
committerMatthew Russotto <matthew.russotto@10gen.com>2019-04-24 15:09:26 -0400
commit3f091c21945de3dff8a6897bbed9a557b6bed2a3 (patch)
treed91d40d7a6a4d5dd6f93e104e79fa15129c12a2d /src/mongo/db/repl/oplog_test.cpp
parent0e9dcfbff4846e848b82e9c99f0d950dd7eaeae1 (diff)
downloadmongo-3f091c21945de3dff8a6897bbed9a557b6bed2a3.tar.gz
SERVER-39796 Remove oplog name parameter from OplogInterfaceLocal. Remove uses of OplogInterfaceLocal for non-oplog documents
Diffstat (limited to 'src/mongo/db/repl/oplog_test.cpp')
-rw-r--r--src/mongo/db/repl/oplog_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/oplog_test.cpp b/src/mongo/db/repl/oplog_test.cpp
index 76fd17eaa5c..ac154664492 100644
--- a/src/mongo/db/repl/oplog_test.cpp
+++ b/src/mongo/db/repl/oplog_test.cpp
@@ -80,7 +80,7 @@ void OplogTest::setUp() {
* Assert that oplog only has a single entry and return that oplog entry.
*/
OplogEntry _getSingleOplogEntry(OperationContext* opCtx) {
- OplogInterfaceLocal oplogInterface(opCtx, NamespaceString::kRsOplogNamespace.ns());
+ OplogInterfaceLocal oplogInterface(opCtx);
auto oplogIter = oplogInterface.makeIterator();
auto opEntry = unittest::assertGet(oplogIter->next());
ASSERT_EQUALS(ErrorCodes::CollectionIsEmpty, oplogIter->next().getStatus())
@@ -194,7 +194,7 @@ void _testConcurrentLogOp(const F& makeTaskFunction,
// Read oplog entries from the oplog collection starting with the entry with the most recent
// optime.
auto opCtx = cc().makeOperationContext();
- OplogInterfaceLocal oplogInterface(opCtx.get(), NamespaceString::kRsOplogNamespace.ns());
+ OplogInterfaceLocal oplogInterface(opCtx.get());
auto oplogIter = oplogInterface.makeIterator();
auto nextValue = oplogIter->next();
while (nextValue.isOK()) {