diff options
author | Martin Bligh <mbligh@mongodb.com> | 2015-10-07 16:18:17 -0400 |
---|---|---|
committer | Martin Bligh <mbligh@mongodb.com> | 2015-10-07 16:18:17 -0400 |
commit | 873a1c9b81f20dcdeab13cefaa901050c96ff47f (patch) | |
tree | 2d2afd6d948a871f7db3b76f5b7b530e562a8541 /src/mongo/db/db_raii.cpp | |
parent | c7ddaa120d2041ce600d504b1bae149353b80fdc (diff) | |
download | mongo-873a1c9b81f20dcdeab13cefaa901050c96ff47f.tar.gz |
SERVER-20360: break out logicalOp vs networkOp
Diffstat (limited to 'src/mongo/db/db_raii.cpp')
-rw-r--r-- | src/mongo/db/db_raii.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/db_raii.cpp b/src/mongo/db/db_raii.cpp index bc502683693..120a1eafda6 100644 --- a/src/mongo/db/db_raii.cpp +++ b/src/mongo/db/db_raii.cpp @@ -103,7 +103,7 @@ AutoGetCollectionForRead::~AutoGetCollectionForRead() { auto currentOp = CurOp::get(_txn); Top::get(_txn->getClient()->getServiceContext()) .record(currentOp->getNS(), - currentOp->getOp(), + currentOp->getNetworkOp(), -1, // "read locked" _timer.micros(), currentOp->isCommand()); @@ -183,7 +183,7 @@ void OldClientContext::_finishInit() { } void OldClientContext::_checkNotStale() const { - switch (CurOp::get(_txn)->getOp()) { + switch (CurOp::get(_txn)->getNetworkOp()) { case dbGetMore: // getMore is special and should be handled elsewhere. case dbUpdate: // update & delete check shard version in instance.cpp, so don't check case dbDelete: // here as well. @@ -200,7 +200,7 @@ OldClientContext::~OldClientContext() { auto currentOp = CurOp::get(_txn); Top::get(_txn->getClient()->getServiceContext()) .record(currentOp->getNS(), - currentOp->getOp(), + currentOp->getNetworkOp(), _txn->lockState()->isWriteLocked() ? 1 : -1, _timer.micros(), currentOp->isCommand()); |