summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/current_op.cpp
diff options
context:
space:
mode:
authorErnie Hershey <ernie.hershey@10gen.com>2015-05-18 13:51:30 -0400
committerErnie Hershey <ernie.hershey@10gen.com>2015-05-18 13:51:30 -0400
commit7147e127644cba2bfa292945557b43664cc31f47 (patch)
treebcd10aa1950bd7be199de910f0891d9bf2b500f8 /src/mongo/db/commands/current_op.cpp
parentd5bf63455aa614d98ac840f09ce5ca6b813b9507 (diff)
downloadmongo-7147e127644cba2bfa292945557b43664cc31f47.tar.gz
Revert "SERVER-18515 Replace OperationContext::getCurOp with CurOp::get(OperationContext*)"
This reverts commit d5bf63455aa614d98ac840f09ce5ca6b813b9507.
Diffstat (limited to 'src/mongo/db/commands/current_op.cpp')
-rw-r--r--src/mongo/db/commands/current_op.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/db/commands/current_op.cpp b/src/mongo/db/commands/current_op.cpp
index 7d3957ea42f..0bb4576c954 100644
--- a/src/mongo/db/commands/current_op.cpp
+++ b/src/mongo/db/commands/current_op.cpp
@@ -111,11 +111,9 @@ namespace mongo {
if (!includeAll) {
// Skip over inactive connections.
- if (!opCtx)
- continue;
- auto curOp = CurOp::get(opCtx);
- if (!curOp || !curOp->active())
+ if (!opCtx || !opCtx->getCurOp() || !opCtx->getCurOp()->active()) {
continue;
+ }
}
BSONObjBuilder infoBuilder;
@@ -126,8 +124,8 @@ namespace mongo {
// Operation context specific information
if (opCtx) {
// CurOp
- if (CurOp::get(opCtx)) {
- CurOp::get(opCtx)->reportState(&infoBuilder);
+ if (opCtx->getCurOp()) {
+ opCtx->getCurOp()->reportState(&infoBuilder);
}
// LockState