summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorArun Banala <arun.banala@10gen.com>2019-09-24 16:50:09 +0000
committerevergreen <evergreen@mongodb.com>2019-09-24 16:50:09 +0000
commit60518c8920064b30df53129ea880dacfcb04be71 (patch)
treeaa9054360e25e2b3505dbced16bfb5922e606bb9 /src/mongo/db/curop.h
parent7edbbc86d4ac06fddd3ab3482d2985392811032b (diff)
downloadmongo-60518c8920064b30df53129ea880dacfcb04be71.tar.gz
SERVER-29794 Adding a comment to all commands
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index 0019bbb85ad..7cb2395df5f 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -143,10 +143,7 @@ public:
OpDebug() = default;
- std::string report(Client* client,
- const CurOp& curop,
- const SingleThreadedLockStats* lockStats,
- FlowControlTicketholder::CurOp flowControlStats) const;
+ std::string report(OperationContext* opCtx, const SingleThreadedLockStats* lockStats) const;
/**
* Appends information about the current operation to "builder"
@@ -154,7 +151,7 @@ public:
* @param curop reference to the CurOp that owns this OpDebug
* @param lockStats lockStats object containing locking information about the operation
*/
- void append(const CurOp& curop,
+ void append(OperationContext* opCtx,
const SingleThreadedLockStats& lockStats,
FlowControlTicketholder::CurOp flowControlStats,
BSONObjBuilder& builder) const;
@@ -553,7 +550,7 @@ public:
* If called from a thread other than the one executing the operation associated with this
* CurOp, it is necessary to lock the associated Client object before executing this method.
*/
- void reportState(BSONObjBuilder* builder, bool truncateOps = false);
+ void reportState(OperationContext* opCtx, BSONObjBuilder* builder, bool truncateOps = false);
/**
* Sets the message for this CurOp.