mirror of https://github.com/mongodb/mongo
Revert "SERVER-114164 Replace awaitReplication in long_secondary_read… (#45287)
GitOrigin-RevId: 0aef54535c9227ea398dcc37b7fddc40042bb00f
This commit is contained in:
parent
861513e6ea
commit
63487044ed
|
|
@ -70,7 +70,7 @@ export const $config = (function () {
|
|||
this.expectedDocuments = Array.from({length: this.nDocumentsToInsert}).map((_, i) => ({_id: i, x: i}));
|
||||
assert.commandWorked(db[this.collName].insertMany(this.expectedDocuments));
|
||||
if (cluster.isReplication()) {
|
||||
cluster.getReplicaSets().forEach((rst) => rst.awaitNodesAgreeOnAppliedOpTime());
|
||||
cluster.awaitReplication();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue