diff options
author | James Wahlin <james.wahlin@10gen.com> | 2016-04-05 09:33:23 -0400 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2016-04-21 11:45:40 -0400 |
commit | 6bbaee174447ee1c9177c72bdd07f050ab07e901 (patch) | |
tree | 213a1b76b23f31c143fb8ac4f3299fb1e13fc8a9 /src/mongo/dbtests/counttests.cpp | |
parent | 223c2a1aa5fd11fd3e7115ca9acb6d1217f80f92 (diff) | |
download | mongo-6bbaee174447ee1c9177c72bdd07f050ab07e901.tar.gz |
SERVER-23271 Add keysInserted and keysDeleted metrics for CRUD ops
Diffstat (limited to 'src/mongo/dbtests/counttests.cpp')
-rw-r--r-- | src/mongo/dbtests/counttests.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/dbtests/counttests.cpp b/src/mongo/dbtests/counttests.cpp index f6f0f48c858..2e28621b833 100644 --- a/src/mongo/dbtests/counttests.cpp +++ b/src/mongo/dbtests/counttests.cpp @@ -90,6 +90,7 @@ protected: void insert(const char* s) { WriteUnitOfWork wunit(&_txn); const BSONObj o = fromjson(s); + OpDebug* const nullOpDebug = nullptr; if (o["_id"].eoo()) { BSONObjBuilder b; @@ -97,9 +98,9 @@ protected: oid.init(); b.appendOID("_id", &oid); b.appendElements(o); - _collection->insertDocument(&_txn, b.obj(), false); + _collection->insertDocument(&_txn, b.obj(), nullOpDebug, false); } else { - _collection->insertDocument(&_txn, o, false); + _collection->insertDocument(&_txn, o, nullOpDebug, false); } wunit.commit(); } |