summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index bb1f82b1a5d..cec51830967 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -382,12 +382,14 @@ public:
Command::ReadWriteType getReadWriteType() const;
/**
- * Appends information about this CurOp to "builder".
+ * Appends information about this CurOp to "builder". If "truncateOps" is true, appends a string
+ * summary of any objects which exceed the threshold size. If truncateOps is false, append the
+ * entire object.
*
* 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);
+ void reportState(BSONObjBuilder* builder, bool truncateOps = false);
/**
* Sets the message and the progress meter for this CurOp.