diff options
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()); |