diff options
author | Mathias Stearn <mathias@10gen.com> | 2016-06-24 13:00:21 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2016-06-24 13:00:21 -0400 |
commit | 7084de1f754ffaf94ead1a5e1bd8475e3a115b76 (patch) | |
tree | 1d015c92d300330ba64b374bf7ac6fe1c8d065e3 /src/mongo/db/db_raii.cpp | |
parent | a5e8fb2029c4d96daa0d07f287bf07a68a3ec1fa (diff) | |
download | mongo-7084de1f754ffaf94ead1a5e1bd8475e3a115b76.tar.gz |
Revert "SERVER-5905 Add operation latency histogram"
This reverts commit c7794350b056cdea85e1c6185a7dda4579936179.
Diffstat (limited to 'src/mongo/db/db_raii.cpp')
-rw-r--r-- | src/mongo/db/db_raii.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/db_raii.cpp b/src/mongo/db/db_raii.cpp index c945912363f..f1bc7208092 100644 --- a/src/mongo/db/db_raii.cpp +++ b/src/mongo/db/db_raii.cpp @@ -109,8 +109,7 @@ AutoGetCollectionForRead::~AutoGetCollectionForRead() { // Report time spent in read lock auto currentOp = CurOp::get(_txn); Top::get(_txn->getClient()->getServiceContext()) - .record(_txn, - currentOp->getNS(), + .record(currentOp->getNS(), currentOp->getLogicalOp(), -1, // "read locked" _timer.micros(), @@ -207,8 +206,7 @@ OldClientContext::~OldClientContext() { auto currentOp = CurOp::get(_txn); Top::get(_txn->getClient()->getServiceContext()) - .record(_txn, - currentOp->getNS(), + .record(currentOp->getNS(), currentOp->getLogicalOp(), _txn->lockState()->isWriteLocked() ? 1 : -1, _timer.micros(), |