0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-45350: Use awaitMajorityCommitted in standalone_replication_recovery_idempotent.js

This commit is contained in:
Lingzhi Deng 2020-01-03 19:02:42 +00:00 committed by evergreen
parent 6ac9ecb3b5
commit 154f268c9e

View File

@ -146,7 +146,7 @@ assertDocsInColl1(node, [3, 4]);
assertPrepareConflictColl2(node, 1);
restartServerReplication(secondary);
rst.awaitReplication();
PrepareHelpers.awaitMajorityCommitted(rst, prepareTimestamp);
assertDocsInColl1(node, [3, 4]);
assertPrepareConflictColl2(node, 1);
@ -161,4 +161,4 @@ assert.commandWorked(node.adminCommand({
assert.sameMembers(getColl2(node).find().toArray(), [{_id: 1, a: 1}]);
rst.stopSet();
})();
})();