Skip to content

Commit 62eb4ab

Browse files
author
Dave
authored
DOCSP-16201 BACKPORT (#572)
* DOCSP-16201 BACKPORT * Update release version
1 parent 0f7528b commit 62eb4ab

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

source/reference/command/serverStatus.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,35 @@ opcounters
14441444
</reference/command>` **except** the write commands:
14451445
:dbcommand:`insert`, :dbcommand:`update`, and :dbcommand:`delete`.
14461446

1447+
.. serverstatus:: opcounters.deprecated
1448+
1449+
This section only appears in the :method:`db.serverStatus()` output
1450+
when one of the following, deprecated opcodes has been used:
1451+
1452+
.. code-block:: javascript
1453+
1454+
"deprecated": {
1455+
"opQuery": NumberLong(<num>),
1456+
"opGetMore": NumberLong(<num>),
1457+
"opKillCursors": NumberLong(<num>),
1458+
"opDelete": NumberLong(<num>),
1459+
"opUpdate": NumberLong(<num>),
1460+
"opInsert": NumberLong(<num>),
1461+
"total": NumberLong(<num>),
1462+
}
1463+
1464+
These opcodes were deprecated in MongoDB 4.0.26 and support for
1465+
these opcodes is removed in MongoDB 5.1. Starting in MongoDB 5.1,
1466+
:binary:`~bin.mongod` refuses requests that use a deprecated
1467+
opcode and increments the corresponding counter.
1468+
1469+
``OP_QUERY`` is an exception to the general rule.
1470+
:binary:`~bin.mongod` continues to support ``hello`` and
1471+
``isMaster`` requests that use ``OP_QUERY``. :binary:`~bin.mongod`
1472+
refuses any other ``OP_QUERY`` requests.
1473+
1474+
The counters are reset when :binary:`~bin.mongod` starts.
1475+
14471476
.. _server-status-opcountersrepl:
14481477
.. _server-status-opcounters-repl:
14491478

0 commit comments

Comments
 (0)