Skip to content

Commit 66f9938

Browse files
committed
Revert "DOCSP-46695: Retryable reads and writes info"
This reverts commit 568c8e8.
1 parent 568c8e8 commit 66f9938

File tree

2 files changed

+2
-42
lines changed

2 files changed

+2
-42
lines changed

source/connect/connection-options.txt

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -258,29 +258,8 @@ Read and Write Operations
258258
time plus this value, the server isn't eligible for selection.
259259
|
260260
| **Data Type**: `read_preferences <{+api-root+}pymongo/read_preferences.html#pymongo.read_preferences>`__
261-
| **Default**: {+int-data-type+}
261+
| **Default**: ``{+int-data-type+}``
262262
| **MongoClient Example**: ``localThresholdMS=35``
263263
| **Connection URI Example**: ``localThresholdMS=35``
264264

265-
* - **retryReads**
266-
- | Specifies whether the client should retry supported read operations. For more
267-
information, see :manual:`</core/retryable-reads/>` in the {+mdb-server+}
268-
manual.
269-
|
270-
| **Data Type**: {+bool-data-type+}
271-
| **Default**: ``True``
272-
| **MongoClient Example**: ``retryReads=False``
273-
| **Connection URI Example**: ``retryReads=False``
274-
275-
* - **retryWrites**
276-
- | Specifies whether the client should retry supported write operations. For more
277-
information, see :manual:`</core/retryable-writes/>` in the {+mdb-server+}
278-
manual.
279-
|
280-
| **Data Type**: {+bool-data-type+}
281-
| **Default**: ``True``
282-
| **MongoClient Example**: ``retryWrites=False``
283-
| **Connection URI Example**: ``retryWrites=False``
284-
285-
286-
For more information about the connection options in this section, see :ref:`pymongo-databases-collections`.
265+
For more information about the connection option in this section, see :ref:`pymongo-databases-collections`.

source/databases-collections.txt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -283,25 +283,6 @@ within 35 milliseconds of the closest member's ping time.
283283
:manual:`localThreshold </reference/program/mongos/#std-option-mongos.--localThreshold>`
284284
command-line option.
285285

286-
Retryable Reads and Writes
287-
~~~~~~~~~~~~~~~~~~~~~~~~~~
288-
289-
{+driver-short+} automatically retries certain read and write operations a single time
290-
if they fail due to a network error or a server error.
291-
292-
You can explicitly disable retryable reads and writes by setting the ``retryReads`` and
293-
``retryWrites`` options to ``False`` in the ``MongoClient()`` constructor. The following
294-
example disables retryable reads and writes for a client:
295-
296-
.. code-block:: python
297-
298-
client = MongoClient("<connection string>",
299-
retryReads=False, retryWrites=False)
300-
301-
To learn more about supported retryable read operations, see :manual:`</core/retryable-reads/>`
302-
in the {+mdb-server+} manual. To learn more about supported retryable write
303-
operations, see :manual:`</core/retryable-writes/>` in the {+mdb-server+} manual.
304-
305286
Troubleshooting
306287
---------------
307288

0 commit comments

Comments
 (0)