Skip to content

Commit 2bdc188

Browse files
committed
PYTHON-1795 Workaround StaleDbVersion on distinct
1 parent 9cccada commit 2bdc188

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_transactions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,10 @@ def run_scenario(self):
713713
# Load data.
714714
write_concern_coll.insert_many(scenario_def['data'])
715715

716+
# SPEC-1245 workaround StaleDbVersion on distinct
717+
for c in self.mongos_clients:
718+
c[database_name][collection_name].distinct("x")
719+
716720
# Create session0 and session1.
717721
sessions = {}
718722
session_ids = {}

0 commit comments

Comments
 (0)