diff options
Diffstat (limited to 'src/mongo/shell/shardingtest.js')
-rw-r--r-- | src/mongo/shell/shardingtest.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/shell/shardingtest.js b/src/mongo/shell/shardingtest.js index c48b33bddaf..f2d4e3de3c6 100644 --- a/src/mongo/shell/shardingtest.js +++ b/src/mongo/shell/shardingtest.js @@ -1149,6 +1149,13 @@ var ShardingTest = function(params) { }; /** + * Waits for all operations to fully replicate on all shards. + */ + this.awaitReplicationOnShards = function() { + this._rs.forEach(replSet => replSet.test.awaitReplication()); + }; + + /** * Returns if there is a new feature compatibility version for the "latest" version. This must * be manually changed if and when there is a new feature compatibility version. */ |