summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shard_key_util.h
diff options
context:
space:
mode:
authorBlake Oler <blake.oler@mongodb.com>2019-09-24 15:38:39 +0000
committerevergreen <evergreen@mongodb.com>2019-09-24 15:38:39 +0000
commit2f5feed026e1c22bce29cf2efe746d55879d4a14 (patch)
tree2915b778f207efc398462ca840c7b4557c042569 /src/mongo/db/s/shard_key_util.h
parentccbc2473f57504f9ce08096efd000fb37a9e90fc (diff)
downloadmongo-2f5feed026e1c22bce29cf2efe746d55879d4a14.tar.gz
SERVER-42390 Allow documents in a sharded collection to not contain all shard key fields
Diffstat (limited to 'src/mongo/db/s/shard_key_util.h')
-rw-r--r--src/mongo/db/s/shard_key_util.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/s/shard_key_util.h b/src/mongo/db/s/shard_key_util.h
index 62e285816e1..78d2534cd9e 100644
--- a/src/mongo/db/s/shard_key_util.h
+++ b/src/mongo/db/s/shard_key_util.h
@@ -63,9 +63,8 @@ BSONObj makeCreateIndexesCmd(const NamespaceString& nss,
* all of the following properties:
* i. contains proposedKey as a prefix
* ii. is not a sparse index, partial index, or index with a non-simple collation
- * iii. contains no null values
- * iv. is not multikey (maybe lift this restriction later)
- * v. if a hashed index, has default seed (lift this restriction later)
+ * iii. is not multikey (maybe lift this restriction later)
+ * iv. if a hashed index, has default seed (lift this restriction later)
*
* 3. If the proposed shard key is specified as unique, there must exist a useful,
* unique index exactly equal to the proposedKey (not just a prefix).