diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2020-06-05 07:58:16 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-08 07:38:58 +0000 |
commit | 43becb34df823529e205e41137e503feb9f3ee63 (patch) | |
tree | 14bc783762dad78cb1ea20fdc729117f0ba0abda /jstests/sharding/shard_collection_basic.js | |
parent | 3a08edc2ed39f7747fa034b449caa569dba72ace (diff) | |
download | mongo-43becb34df823529e205e41137e503feb9f3ee63.tar.gz |
SERVER-47979 Perform the collation check for `shardCollection` on the shard
.... rather than doing it on the config server, because the stability of
the collection cannot be guaranteed.
Diffstat (limited to 'jstests/sharding/shard_collection_basic.js')
-rw-r--r-- | jstests/sharding/shard_collection_basic.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/shard_collection_basic.js b/jstests/sharding/shard_collection_basic.js index 445dab8a2e7..09d5ccf7b46 100644 --- a/jstests/sharding/shard_collection_basic.js +++ b/jstests/sharding/shard_collection_basic.js @@ -65,7 +65,7 @@ assert.commandWorked(mongos.adminCommand({enableSharding: kDbName})); // Verify wrong arguments errors. assert.commandFailed(mongos.adminCommand({shardCollection: 'foo', key: {_id: 1}})); -assert.commandFailed(mongos.adminCommand({shardCollection: 'foo', key: "aaa"})); +assert.commandFailed(mongos.adminCommand({shardCollection: kDbName + '.foo', key: "aaa"})); // shardCollection may only be run against admin database. assert.commandFailed( |