Skip to content

Commit 61a19c2

Browse files
authored
DOCSP-48521 versionContext Field (#14195)
1 parent a3550ec commit 61a19c2

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

content/manual/upcoming/source/reference/operator/aggregation/currentOp.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,17 @@ relevant for the operation:
968968

969969
.. include:: /includes/extracts/warning-terminating-ops-method.rst
970970

971+
.. data:: $currentOp.versionContext
972+
973+
Describes the :ref:`Feature Compatibility Version (FCV)
974+
<view-fcv>` of the operation, which the server uses to
975+
determine available features.
976+
977+
This information is intended for troubleshooting issues
978+
encountered while updating or downgrading a server.
979+
980+
.. versionadded:: 8.2
981+
971982
.. data:: $currentOp.secs_running
972983

973984
The duration of the operation in seconds. MongoDB calculates this

content/manual/upcoming/source/release-notes/8.2.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ New Aggregation Expression
107107
Starting in MongoDB 8.2, you can use ``$currentDate`` with
108108
:method:`~db.collection.aggregate()` to return the current time on the server.
109109

110+
New $currentOp Field
111+
~~~~~~~~~~~~~~~~~~~~
112+
113+
The :pipeline:`$currentOp` aggregation stage now includes
114+
the :data:`~$currentOp.versionContext` field, which provides
115+
information on the :ref:`Feature Compatibility Version (FCV)
116+
<view-fcv>` of the operation.
117+
110118
serverStatus Output Change
111119
~~~~~~~~~~~~~~~~~~~~~~~~~~
112120

0 commit comments

Comments
 (0)