diff options
Diffstat (limited to 'src/mongo/dbtests/repltests.cpp')
-rw-r--r-- | src/mongo/dbtests/repltests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/repltests.cpp b/src/mongo/dbtests/repltests.cpp index d967bfdb9ff..9cb4b18af93 100644 --- a/src/mongo/dbtests/repltests.cpp +++ b/src/mongo/dbtests/repltests.cpp @@ -235,7 +235,7 @@ protected: OpDebug* const nullOpDebug = nullptr; if (o.hasField("_id")) { repl::UnreplicatedWritesBlock uwb(&_opCtx); - coll->insertDocument(&_opCtx, o, nullOpDebug, true); + coll->insertDocument(&_opCtx, o, nullOpDebug, true).transitional_ignore(); wunit.commit(); return; } @@ -246,7 +246,7 @@ protected: b.appendOID("_id", &id); b.appendElements(o); repl::UnreplicatedWritesBlock uwb(&_opCtx); - coll->insertDocument(&_opCtx, b.obj(), nullOpDebug, true); + coll->insertDocument(&_opCtx, b.obj(), nullOpDebug, true).transitional_ignore(); wunit.commit(); } static BSONObj wid(const char* json) { |