summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/transaction_reaper.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/transaction_reaper.js')
-rw-r--r--jstests/noPassthrough/transaction_reaper.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/noPassthrough/transaction_reaper.js b/jstests/noPassthrough/transaction_reaper.js
index 8fbaae0aed0..b777b80d6b3 100644
--- a/jstests/noPassthrough/transaction_reaper.js
+++ b/jstests/noPassthrough/transaction_reaper.js
@@ -36,6 +36,9 @@
this.st.s0.getDB("admin").runCommand({enableSharding: "test"});
this.st.s0.getDB("admin").runCommand({shardCollection: "test.test", key: {_id: 1}});
+
+ // Ensure that the sessions collection exists.
+ this.st.c0.getDB("admin").runCommand({refreshLogicalSessionCacheNow: 1});
}
Sharding.prototype.stop = function() {