Skip to content

Commit aef211f

Browse files
authored
DRIVERS-1857 Use OP_MSG for exhaust cursors on 3.6+ (#1059)
1 parent 17fcfb0 commit aef211f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

source/find_getmore_killcursors_commands.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,13 @@ Any driver that provides helpers for any of the special collections below SHOULD
340340
Exhaust
341341
^^^^^^^
342342

343-
The **find** command does not support the exhaust flag from **OP_QUERY**.
344-
Drivers that support exhaust MUST fallback to existing **OP_QUERY** wire
345-
protocol messages.
343+
This section only applies to drivers that support exhaust cursors.
344+
345+
On server versions 3.6 and later drivers MUST use **OP_MSG** for exhaust cursors.
346+
347+
On server versions prior to 3.6, drivers MUST fallback to the legacy **OP_QUERY**
348+
wire protocol messages. The **find** command does not support the exhaust flag
349+
from **OP_QUERY**.
346350

347351
Interactions with OP_QUERY
348352
^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -727,6 +731,8 @@ More in depth information about passing read preferences to Mongos can be found
727731

728732
Changes
729733
=======
734+
2021-08-27 Exhaust cursors must use OP_MSG on 3.6+ servers.
735+
730736
2021-04-06 Updated to use hello and secondaryOk.
731737

732738
2015-09-30 Legacy secondaryOk flag must be set to true on **getMore** and **killCursors** commands to make drivers have same behavior as for OP_GET_MORE and OP_KILL_CURSORS.

0 commit comments

Comments
 (0)