Skip to content

Commit 1e51304

Browse files
committed
SERVER-36664 Use awaitReplication instead of getLastError in read_committed_with_catalog_changes.js
1 parent 4028ee6 commit 1e51304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jstests/replsets/read_committed_with_catalog_changes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ load("jstests/replsets/rslib.js"); // For startSetIfSupportsReadMajority.
263263
const setUpInitialState = function setUpInitialState() {
264264
assert.commandWorked(mainDB.dropDatabase());
265265
test.prepare(mainDB);
266-
mainDB.getLastError('majority', 60 * 1000);
266+
replTest.awaitReplication();
267267
// Do some sanity checks.
268268
assertReadsSucceed(otherDBCollection);
269269
test.blockedCollections.forEach((name) => assertReadsSucceed(mainDB[name]));
@@ -325,7 +325,7 @@ load("jstests/replsets/rslib.js"); // For startSetIfSupportsReadMajority.
325325
// unblocked.
326326
assert.commandWorked(
327327
secondary.adminCommand({configureFailPoint: "rsSyncApplyStop", mode: "off"}));
328-
mainDB.getLastError("majority", 60 * 1000);
328+
replTest.awaitReplication();
329329
test.blockedCollections.forEach((name) => assertReadsSucceed(mainDB[name]));
330330

331331
// Wait for the threads to complete and report any errors encountered from running them.

0 commit comments

Comments
 (0)