summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/sharding/migration_failure.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/sharding/migration_failure.js b/jstests/sharding/migration_failure.js
index 7e3fbff0f05..717a75c5b0c 100644
--- a/jstests/sharding/migration_failure.js
+++ b/jstests/sharding/migration_failure.js
@@ -24,8 +24,7 @@ function runTest(shouldIncrementChunkMajorVersionOnChunkSplits) {
});
if (shouldIncrementChunkMajorVersionOnChunkSplits) {
- assert.commandWorked(
- st.configRS.getPrimary().adminCommand({setFeatureCompatibilityVersion: lastStableFCV}));
+ assert.commandWorked(st.s.adminCommand({setFeatureCompatibilityVersion: lastStableFCV}));
}
var mongos = st.s0;