Skip to content

Commit 8d51a52

Browse files
ianf-mongodbnpentrel
authored andcommitted
DOCS-14290 Mongosh db.currentOp now uses agg stage
1 parent 42ea8d1 commit 8d51a52

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Starting in MongoDB 5.0, the :pipeline:`$currentOp` aggregation
2+
stage is used when running the helper method :method:`db.currentOp()`
3+
with :binary:`~bin.mongosh`.
4+
5+
Given this, in the 5.0 version of the shell and with mongosh,
6+
:method:`db.currentOp()` result sets are not subject to the
7+
:ref:`16MB BSON document return size<limit-bson-document-size>`
8+
document return size limit for documents of the previous legacy
9+
:binary:`~bin.mongo` versions.

source/reference/command/currentOp.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ Definition
2626

2727
{ currentOp: 1 }
2828

29-
:binary:`~bin.mongosh` provides the :method:`db.currentOp()`
30-
wrapper for the :dbcommand:`currentOp` command.
31-
3229
.. note::
3330

34-
.. include:: /includes/fact-currentop.rst
31+
.. include:: /includes/5.0-fact-currentop.rst
3532

3633
Behavior
3734
--------

source/reference/method/db.currentOp.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Definition
2525

2626
.. note::
2727

28-
.. include:: /includes/fact-currentop.rst
28+
.. include:: /includes/5.0-fact-currentop.rst
2929

3030
Syntax
3131
~~~~~~

source/release-notes/5.0.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,13 @@ shell method) include additional information about the status of ongoing
476476
resharding operations for the resharding coordinator and the
477477
donor and recipient shards.
478478

479+
``db.currentOp`` Method Now Uses Aggregation Stage in ``mongosh``
480+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
481+
482+
Starting in MongoDB 5.0, the :pipeline:`$currentOp` aggregation
483+
stage is used when running the helper method :method:`db.currentOp()`
484+
with :binary:`~bin.mongosh`.
485+
479486
``mongos`` / ``mongod`` Connection Pool
480487
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
481488

0 commit comments

Comments
 (0)