diff options
author | Benety Goh <benety@mongodb.com> | 2018-05-30 17:45:19 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-05-30 17:45:19 -0400 |
commit | d2978d6af210356616c07193a29641a41f797d8b (patch) | |
tree | 728bef158f825e4b0b5bae838ee3fc888ca34c6f /src/mongo/dbtests | |
parent | b65f5147a512cd57a323eb5853a503d8cf1bb557 (diff) | |
download | mongo-d2978d6af210356616c07193a29641a41f797d8b.tar.gz |
SERVER-32335 implement multiInitialSyncApply in terms of multiSyncApply
Extends multiSyncApply to fetch missing documents on failed updates
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r-- | src/mongo/dbtests/storage_timestamp_tests.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/dbtests/storage_timestamp_tests.cpp b/src/mongo/dbtests/storage_timestamp_tests.cpp index fd69f6e4efc..d40972a7956 100644 --- a/src/mongo/dbtests/storage_timestamp_tests.cpp +++ b/src/mongo/dbtests/storage_timestamp_tests.cpp @@ -1436,11 +1436,15 @@ public: auto storageInterface = repl::StorageInterface::get(_opCtx); auto writerPool = repl::SyncTail::makeWriterPool(); + repl::OplogApplier::Options options; + options.allowNamespaceNotFoundErrorsOnCrudOps = true; + options.missingDocumentSourceForInitialSync = HostAndPort("localhost", 123); repl::SyncTail syncTail(nullptr, _consistencyMarkers, storageInterface, repl::multiInitialSyncApply, - writerPool.get()); + writerPool.get(), + options); auto lastTime = unittest::assertGet(syncTail.multiApply(_opCtx, ops)); ASSERT_EQ(lastTime.getTimestamp(), insertTime2.asTimestamp()); |