summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/counttests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/counttests.cpp')
-rw-r--r--src/mongo/dbtests/counttests.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/dbtests/counttests.cpp b/src/mongo/dbtests/counttests.cpp
index 9f3cf21c73b..8e36e525268 100644
--- a/src/mongo/dbtests/counttests.cpp
+++ b/src/mongo/dbtests/counttests.cpp
@@ -87,9 +87,11 @@ protected:
oid.init();
b.appendOID("_id", &oid);
b.appendElements(o);
- _collection->insertDocument(&_opCtx, b.obj(), nullOpDebug, false).transitional_ignore();
+ _collection->insertDocument(&_opCtx, InsertStatement(b.obj()), nullOpDebug, false)
+ .transitional_ignore();
} else {
- _collection->insertDocument(&_opCtx, o, nullOpDebug, false).transitional_ignore();
+ _collection->insertDocument(&_opCtx, InsertStatement(o), nullOpDebug, false)
+ .transitional_ignore();
}
wunit.commit();
}