diff options
author | Greg Studer <greg@10gen.com> | 2013-06-11 10:28:44 -0400 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2013-06-12 12:22:14 -0400 |
commit | 1e03edb5a6432018af994e1f41e359ae903493a9 (patch) | |
tree | 4b5d78aeb41c08262476c14186a4fb01cc5e8bf0 /src/mongo/db/hasher.h | |
parent | 6c3225162bcb5aea62fc476b647e14742f2bd65b (diff) | |
download | mongo-1e03edb5a6432018af994e1f41e359ae903493a9.tar.gz |
SERVER-9859 SERVER-8687 prevent hashed sharding w/o default seed
Diffstat (limited to 'src/mongo/db/hasher.h')
-rw-r--r-- | src/mongo/db/hasher.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/hasher.h b/src/mongo/db/hasher.h index ae3e9567cee..cce24107e21 100644 --- a/src/mongo/db/hasher.h +++ b/src/mongo/db/hasher.h @@ -68,6 +68,9 @@ namespace mongo { /* The hash function we use can be given a seed, to effectively randomize it * by choosing from among a family of hash functions. When it is not specified, * use this. + * + * WARNING: do not change the hash see value. Hash-based sharding clusters will + * expect that value to be zero. */ static const int DEFAULT_HASH_SEED = 0; |