summaryrefslogtreecommitdiff
path: root/src/mongo/db/introspect.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-05-15 14:39:52 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-05-18 13:39:23 -0400
commitd5bf63455aa614d98ac840f09ce5ca6b813b9507 (patch)
treeba5161195343c4b9b5d5dadea9ea3b6d7e86fd1f /src/mongo/db/introspect.cpp
parentbb3c301d62a8c5601fb0bed176013ef7ac0a3720 (diff)
downloadmongo-d5bf63455aa614d98ac840f09ce5ca6b813b9507.tar.gz
SERVER-18515 Replace OperationContext::getCurOp with CurOp::get(OperationContext*)
Diffstat (limited to 'src/mongo/db/introspect.cpp')
-rw-r--r--src/mongo/db/introspect.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/introspect.cpp b/src/mongo/db/introspect.cpp
index 8040a0b7b6b..1f6e0003e6c 100644
--- a/src/mongo/db/introspect.cpp
+++ b/src/mongo/db/introspect.cpp
@@ -91,20 +91,20 @@ namespace {
{
Locker::LockerInfo lockerInfo;
txn->lockState()->getLockerInfo(&lockerInfo);
- txn->getCurOp()->debug().append(*txn->getCurOp(), lockerInfo.stats, b);
+ CurOp::get(txn)->debug().append(*CurOp::get(txn), lockerInfo.stats, b);
}
b.appendDate("ts", jsTime());
b.append("client", txn->getClient()->clientAddress());
AuthorizationSession * authSession = AuthorizationSession::get(txn->getClient());
- _appendUserInfo(*txn->getCurOp(), b, authSession);
+ _appendUserInfo(*CurOp::get(txn), b, authSession);
const BSONObj p = b.done();
const bool wasLocked = txn->lockState()->isLocked();
- const string dbName(nsToDatabase(txn->getCurOp()->getNS()));
+ const string dbName(nsToDatabase(CurOp::get(txn)->getNS()));
try {
bool acquireDbXLock = false;
@@ -126,7 +126,7 @@ namespace {
if (!db) {
// Database disappeared
log() << "note: not profiling because db went away for "
- << txn->getCurOp()->getNS();
+ << CurOp::get(txn)->getNS();
break;
}
@@ -156,7 +156,7 @@ namespace {
catch (const AssertionException& assertionEx) {
warning() << "Caught Assertion while trying to profile "
<< opToString(op)
- << " against " << txn->getCurOp()->getNS()
+ << " against " << CurOp::get(txn)->getNS()
<< ": " << assertionEx.toString() << endl;
}
}