@@ -3352,33 +3352,19 @@ opcounters
3352
3352
3353
3353
.. serverstatus:: opcounters.deprecated
3354
3354
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
+
3358
3362
.. code-block:: javascript
3359
3363
3360
3364
"deprecated": {
3361
3365
"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>),
3368
3366
}
3369
3367
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
-
3382
3368
.. _server-status-opcountersrepl:
3383
3369
.. _server-status-opcounters-repl:
3384
3370
0 commit comments