diff options
Diffstat (limited to 'src/mongo/dbtests/repltests.cpp')
-rw-r--r-- | src/mongo/dbtests/repltests.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/dbtests/repltests.cpp b/src/mongo/dbtests/repltests.cpp index 0becd7c9fba..ec092669747 100644 --- a/src/mongo/dbtests/repltests.cpp +++ b/src/mongo/dbtests/repltests.cpp @@ -249,9 +249,10 @@ protected: coll = db->createCollection(&_txn, ns()); } + OpDebug* const nullOpDebug = nullptr; if (o.hasField("_id")) { _txn.setReplicatedWrites(false); - coll->insertDocument(&_txn, o, true); + coll->insertDocument(&_txn, o, nullOpDebug, true); _txn.setReplicatedWrites(true); wunit.commit(); return; @@ -263,7 +264,7 @@ protected: b.appendOID("_id", &id); b.appendElements(o); _txn.setReplicatedWrites(false); - coll->insertDocument(&_txn, b.obj(), true); + coll->insertDocument(&_txn, b.obj(), nullOpDebug, true); _txn.setReplicatedWrites(true); wunit.commit(); } |