diff options
author | Randolph Tan <randolph@10gen.com> | 2018-01-26 17:06:02 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2018-01-29 15:13:41 -0500 |
commit | dd0855388eeb9d4302087926a0f61eb8e0e47fc1 (patch) | |
tree | 536bc0623604c0a69e6c2c8ad15115e81142cf92 /jstests/sharding | |
parent | 699fcfef6803d680b4317c5fa5b96ecbb4463d31 (diff) | |
download | mongo-dd0855388eeb9d4302087926a0f61eb8e0e47fc1.tar.gz |
SERVER-32929 clone_metadata_only.js fails on mmap
Diffstat (limited to 'jstests/sharding')
-rw-r--r-- | jstests/sharding/clone_metadata_only.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/sharding/clone_metadata_only.js b/jstests/sharding/clone_metadata_only.js index 8c1c704b74f..aee8d45f8e8 100644 --- a/jstests/sharding/clone_metadata_only.js +++ b/jstests/sharding/clone_metadata_only.js @@ -63,7 +63,9 @@ // Ask the shard that just called clone for the collections, views, and indexes. var res = toShard.getDB('test').runCommand({listCollections: 1}); assert.commandWorked(res); - var collections = res.cursor.firstBatch; + // Remove system.indexes collection (which exists in mmap) + // Indexes are checked separately below. + var collections = res.cursor.firstBatch.filter(coll => coll.name != 'system.indexes'); function sortByName(a, b) { if (a.name < b.name) @@ -173,4 +175,4 @@ // TODO SERVER-32847: check that collection UUIDs are correctly copied over. st.stop(); -})();
\ No newline at end of file +})(); |