diff options
author | Benety Goh <benety@mongodb.com> | 2016-04-21 14:31:09 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2016-04-21 14:31:09 -0400 |
commit | 0bd67d53681e4826a44f2b45b136f50cd36de44b (patch) | |
tree | 6de928d1480421d36774bc1061fde8942c80f3f1 /src/mongo/dbtests/validate_tests.cpp | |
parent | 42415534834c82518dfdb4c75c3b22b75edb5eff (diff) | |
download | mongo-0bd67d53681e4826a44f2b45b136f50cd36de44b.tar.gz |
Revert "SERVER-23271 Add keysInserted and keysDeleted metrics for CRUD ops"
This reverts commit 6bbaee174447ee1c9177c72bdd07f050ab07e901.
Diffstat (limited to 'src/mongo/dbtests/validate_tests.cpp')
-rw-r--r-- | src/mongo/dbtests/validate_tests.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/dbtests/validate_tests.cpp b/src/mongo/dbtests/validate_tests.cpp index 51f540aa41c..fe82b1c5589 100644 --- a/src/mongo/dbtests/validate_tests.cpp +++ b/src/mongo/dbtests/validate_tests.cpp @@ -106,14 +106,13 @@ public: Collection* coll; RecordId id1; { - OpDebug* const nullOpDebug = nullptr; WriteUnitOfWork wunit(&_txn); ASSERT_OK(db->dropCollection(&_txn, _ns)); coll = db->createCollection(&_txn, _ns); - ASSERT_OK(coll->insertDocument(&_txn, BSON("_id" << 1), nullOpDebug, true)); + ASSERT_OK(coll->insertDocument(&_txn, BSON("_id" << 1), true)); id1 = coll->getCursor(&_txn)->next()->id; - ASSERT_OK(coll->insertDocument(&_txn, BSON("_id" << 2), nullOpDebug, true)); + ASSERT_OK(coll->insertDocument(&_txn, BSON("_id" << 2), true)); wunit.commit(); } @@ -156,13 +155,12 @@ public: Collection* coll; RecordId id1; { - OpDebug* const nullOpDebug = nullptr; WriteUnitOfWork wunit(&_txn); ASSERT_OK(db->dropCollection(&_txn, _ns)); coll = db->createCollection(&_txn, _ns); - ASSERT_OK(coll->insertDocument(&_txn, BSON("_id" << 1 << "a" << 1), nullOpDebug, true)); + ASSERT_OK(coll->insertDocument(&_txn, BSON("_id" << 1 << "a" << 1), true)); id1 = coll->getCursor(&_txn)->next()->id; - ASSERT_OK(coll->insertDocument(&_txn, BSON("_id" << 2 << "a" << 2), nullOpDebug, true)); + ASSERT_OK(coll->insertDocument(&_txn, BSON("_id" << 2 << "a" << 2), true)); wunit.commit(); } |