diff options
Diffstat (limited to 'jstests/replsets/initial_sync_replicates_prepare_received_during_another_initial_sync.js')
-rw-r--r-- | jstests/replsets/initial_sync_replicates_prepare_received_during_another_initial_sync.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/initial_sync_replicates_prepare_received_during_another_initial_sync.js b/jstests/replsets/initial_sync_replicates_prepare_received_during_another_initial_sync.js index 80012cab607..9ea82c52bb3 100644 --- a/jstests/replsets/initial_sync_replicates_prepare_received_during_another_initial_sync.js +++ b/jstests/replsets/initial_sync_replicates_prepare_received_during_another_initial_sync.js @@ -47,7 +47,7 @@ function restartSecondaryAndForceSyncSource(replSet, secondary, syncSource, dbNa // Wait for the secondary to complete initial sync. waitForState(secondary, ReplSetTest.State.SECONDARY); // Allow for secondary reads. - secondary.setSlaveOk(); + secondary.setSecondaryOk(); const secondaryDB = secondary.getDB(dbName); // Confirm that we have a prepared transaction in progress on the secondary. |