summaryrefslogtreecommitdiff
path: root/src/mongo/db/introspect.cpp
diff options
context:
space:
mode:
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;
}
}