diff --git a/source/includes/fact-currentop.rst b/source/includes/fact-currentop.rst index 93644d420d6..6778e6851d0 100644 --- a/source/includes/fact-currentop.rst +++ b/source/includes/fact-currentop.rst @@ -1,3 +1,7 @@ +Starting in MongoDB 5.0, the :pipeline:`$currentOp` aggregation +stage is used when running the helper method :method:`db.currentOp()` +via :binary:`~bin.mongosh`. + Because :dbcommand:`currentOp` command and :method:`db.currentOp()` helper returns the results in a single document, the total size of the :dbcommand:`currentOp` result set diff --git a/source/release-notes/5.0.txt b/source/release-notes/5.0.txt index 9c79cb4a55b..e25530bef20 100644 --- a/source/release-notes/5.0.txt +++ b/source/release-notes/5.0.txt @@ -487,6 +487,13 @@ shell method) include additional information about the status of ongoing resharding operations for the resharding coordinator and the donor and recipient shards. +``db.currentOp`` Method Now Uses Aggregation Stage in ``mongosh`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Starting in MongoDB 5.0, the :pipeline:`$currentOp` aggregation +stage is used when running the helper method :method:`db.currentOp()` +via :binary:`~bin.mongosh`. + ``mongos`` / ``mongod`` Connection Pool ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~