diff options
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r-- | src/mongo/db/curop.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp index 640c82063e0..57b3d780d11 100644 --- a/src/mongo/db/curop.cpp +++ b/src/mongo/db/curop.cpp @@ -147,7 +147,11 @@ namespace mongo { CurOp* CurOp::get(const OperationContext* opCtx) { return get(*opCtx); } CurOp* CurOp::get(const OperationContext& opCtx) { - return _curopStack(opCtx.getClient()).top(); + return getFromClient(opCtx.getClient()); + } + + CurOp* CurOp::getFromClient(const Client* client) { + return _curopStack(client).top(); } CurOp::CurOp(Client* client) : CurOp(client, &_curopStack(client)) {} |