From 3f091c21945de3dff8a6897bbed9a557b6bed2a3 Mon Sep 17 00:00:00 2001 From: Matthew Russotto Date: Mon, 22 Apr 2019 14:48:14 -0400 Subject: SERVER-39796 Remove oplog name parameter from OplogInterfaceLocal. Remove uses of OplogInterfaceLocal for non-oplog documents --- src/mongo/db/repl/oplog_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/repl/oplog_test.cpp') 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()) { -- cgit v1.2.1