You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/find_getmore_killcursors_commands.rst
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -340,9 +340,13 @@ Any driver that provides helpers for any of the special collections below SHOULD
340
340
Exhaust
341
341
^^^^^^^
342
342
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**.
346
350
347
351
Interactions with OP_QUERY
348
352
^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -727,6 +731,8 @@ More in depth information about passing read preferences to Mongos can be found
727
731
728
732
Changes
729
733
=======
734
+
2021-08-27 Exhaust cursors must use OP_MSG on 3.6+ servers.
735
+
730
736
2021-04-06 Updated to use hello and secondaryOk.
731
737
732
738
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