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/db/storage/kv/kv_catalog.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/db/storage/kv/kv_catalog.cpp')
-rw-r--r-- | src/mongo/db/storage/kv/kv_catalog.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mongo/db/storage/kv/kv_catalog.cpp b/src/mongo/db/storage/kv/kv_catalog.cpp index bff423434b4..6a6d1a8e437 100644 --- a/src/mongo/db/storage/kv/kv_catalog.cpp +++ b/src/mongo/db/storage/kv/kv_catalog.cpp @@ -290,8 +290,10 @@ void KVCatalog::putMetaData(OperationContext* opCtx, } LOG(3) << "recording new metadata: " << obj; - Status status = _rs->updateRecord(opCtx, loc, obj.objdata(), obj.objsize(), false, NULL); - fassert(28521, status.isOK()); + StatusWith<RecordId> status = + _rs->updateRecord(opCtx, loc, obj.objdata(), obj.objsize(), false, NULL); + fassert(28521, status.getStatus()); + invariant(status.getValue() == loc); } Status KVCatalog::renameCollection(OperationContext* opCtx, @@ -320,8 +322,10 @@ Status KVCatalog::renameCollection(OperationContext* opCtx, b.appendElementsUnique(old); BSONObj obj = b.obj(); - Status status = _rs->updateRecord(opCtx, loc, obj.objdata(), obj.objsize(), false, NULL); - fassert(28522, status.isOK()); + StatusWith<RecordId> status = + _rs->updateRecord(opCtx, loc, obj.objdata(), obj.objsize(), false, NULL); + fassert(28522, status.getStatus()); + invariant(status.getValue() == loc); } stdx::lock_guard<stdx::mutex> lk(_identsLock); |