summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2016-09-04 15:22:20 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2016-09-04 15:22:20 -0400
commit693717b18d85ad76f7b373246ecddf61811d8bf2 (patch)
tree1b82fd6226ad90e84803803dc04983d96f0fb66e
parent647411015bf3819715c64ba6d18454e91685fc59 (diff)
downloadmongo-693717b18d85ad76f7b373246ecddf61811d8bf2.tar.gz
SERVER-25451 Shard sharded_files_id_n.fs.chunks with unique=true.
(cherry picked from commit 8e7ab6c77df70cc1bc70c34d873f5d05f705e225)
-rw-r--r--jstests/tool/gridfs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/tool/gridfs.js b/jstests/tool/gridfs.js
index 147a255d93e..73cf7baf9fa 100644
--- a/jstests/tool/gridfs.js
+++ b/jstests/tool/gridfs.js
@@ -61,7 +61,7 @@ testGridFS(name);
print('\n\n\t**** sharded collection on files_id,n ****\n\n');
name = 'sharded_files_id_n';
test.adminCommand({enablesharding: name});
-test.adminCommand({shardcollection: name + '.fs.chunks', key: {files_id: 1, n: 1}});
+test.adminCommand({shardcollection: name + '.fs.chunks', key: {files_id: 1, n: 1}, unique: true});
testGridFS(name);
test.stop();