Skip to content

Commit a68d09f

Browse files
committed
testing
1 parent b427c56 commit a68d09f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pymongo/asynchronous/encryption.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ async def collection_info(self, database: str, filter: bytes) -> Optional[bytes]
240240
241241
:return: The first document from the listCollections command response as BSON.
242242
"""
243-
print(f"Calling collection_info {traceback.print_stack()}")
244243
async with await self.client_ref()[database].list_collections(
245244
filter=RawBSONDocument(filter)
246245
) as cursor:

pymongo/asynchronous/mongo_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2565,6 +2565,8 @@ async def run(self) -> T:
25652565
while True:
25662566
self._check_last_error(check_csot=True)
25672567
try:
2568+
if self._operation == _Op.LIST_COLLECTIONS:
2569+
print("Retryable read for list_collections")
25682570
return await self._read() if self._is_read else await self._write()
25692571
except ServerSelectionTimeoutError:
25702572
# The application may think the write was never attempted

0 commit comments

Comments
 (0)