Skip to content

Commit 66b1961

Browse files
author
Dave Cuthbert
authored
DOCS-15524 remove deprecated serverStatus counters (#2349)
* DOCS-15524 remove deprecated serverStatus counters * DOCS-15524 remove deprecated serverStatus counters * review feedback
1 parent 5a0f0d6 commit 66b1961

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

source/reference/command/serverStatus.txt

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3352,33 +3352,19 @@ opcounters
33523352

33533353
.. serverstatus:: opcounters.deprecated
33543354

3355-
This section only appears in the :method:`db.serverStatus()` output
3356-
when one of the following, deprecated opcodes has been used:
3357-
3355+
``opQuery`` counts the number of requests for opcodes that are
3356+
deprecated in MongoDB 5.0 but are temporarily supported. This section
3357+
only appears in the ``db.serverStatus()`` output when a deprecated
3358+
opcode has been used.
3359+
3360+
The counter is reset when ``mongod`` starts.
3361+
33583362
.. code-block:: javascript
33593363

33603364
"deprecated": {
33613365
"opQuery": NumberLong(<num>),
3362-
"opGetMore": NumberLong(<num>),
3363-
"opKillCursors": NumberLong(<num>),
3364-
"opDelete": NumberLong(<num>),
3365-
"opUpdate": NumberLong(<num>),
3366-
"opInsert": NumberLong(<num>),
3367-
"total": NumberLong(<num>),
33683366
}
33693367

3370-
These opcodes were deprecated in MongoDB 5.0 and support for these
3371-
opcodes is removed in MongoDB 5.1. Starting in MongoDB 5.1,
3372-
:binary:`~bin.mongod` refuses requests that use a deprecated
3373-
opcode and increments the corresponding counter.
3374-
3375-
``OP_QUERY`` is an exception to the general rule.
3376-
:binary:`~bin.mongod` continues to support ``hello`` and
3377-
``isMaster`` requests that use ``OP_QUERY``. :binary:`~bin.mongod`
3378-
refuses any other ``OP_QUERY`` requests.
3379-
3380-
The counters are reset when :binary:`~bin.mongod` starts.
3381-
33823368
.. _server-status-opcountersrepl:
33833369
.. _server-status-opcounters-repl:
33843370

0 commit comments

Comments
 (0)