diff options
author | Judah Schvimer <judah@mongodb.com> | 2019-07-02 17:30:22 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2019-07-02 17:46:04 -0400 |
commit | 87862e515e8b4954d832f99ebe064fafb6cbbc2e (patch) | |
tree | 95ba98a46b96bc904b3db43929e4d4eb0e34677f /src/mongo/dbtests/repltests.cpp | |
parent | f92ac762f68f65461b060abc6c94fe95446afba6 (diff) | |
download | mongo-87862e515e8b4954d832f99ebe064fafb6cbbc2e.tar.gz |
SERVER-41788 put oplog application mode on applier options
Diffstat (limited to 'src/mongo/dbtests/repltests.cpp')
-rw-r--r-- | src/mongo/dbtests/repltests.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/dbtests/repltests.cpp b/src/mongo/dbtests/repltests.cpp index d0a5f23e876..cc19591c47e 100644 --- a/src/mongo/dbtests/repltests.cpp +++ b/src/mongo/dbtests/repltests.cpp @@ -1359,7 +1359,12 @@ class SyncTest : public SyncTail { public: bool returnEmpty; explicit SyncTest(OplogApplier::Observer* observer) - : SyncTail(observer, nullptr, nullptr, SyncTail::MultiSyncApplyFunc(), nullptr), + : SyncTail(observer, + nullptr, + nullptr, + SyncTail::MultiSyncApplyFunc(), + nullptr, + OplogApplier::Options(OplogApplication::Mode::kInitialSync)), returnEmpty(false) {} virtual ~SyncTest() {} BSONObj getMissingDoc(OperationContext* opCtx, const OplogEntry& oplogEntry) override { @@ -1406,7 +1411,7 @@ public: // this should fail because we can't connect try { - OplogApplier::Options options; + OplogApplier::Options options(OplogApplication::Mode::kInitialSync); options.allowNamespaceNotFoundErrorsOnCrudOps = true; options.missingDocumentSourceForInitialSync = HostAndPort("localhost", 123); SyncTail badSource( |