Skip to content

Commit 3e921bb

Browse files
committed
PYTHON-2734 Document that find_raw_batches now sends user-specified R… (#634)
(cherry picked from commit b69d00d)
1 parent ecd5116 commit 3e921bb

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pymongo/collection.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,10 @@ def find_raw_batches(self, *args, **kwargs):
15461546
.. note:: find_raw_batches does not support sessions or auto
15471547
encryption.
15481548
1549+
.. versionchanged:: 3.12
1550+
Instead of ignoring the user-specified read concern, this method
1551+
now sends it to the server when connected to MongoDB 3.6+.
1552+
15491553
.. versionadded:: 3.6
15501554
"""
15511555
# OP_MSG with document stream returns is required to support

test/test_cursor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,6 +1526,7 @@ def test_collation_error(self):
15261526
next(self.db.test.find_raw_batches(collation=Collation('en_US')))
15271527

15281528
@client_context.require_version_min(3, 2)
1529+
@client_context.require_no_mmap # MMAPv1 does not support read concern
15291530
def test_read_concern(self):
15301531
self.db.get_collection(
15311532
"test", write_concern=WriteConcern(w="majority")).insert_one({})

0 commit comments

Comments
 (0)