summaryrefslogtreecommitdiff
path: root/src/mongo/db/hasher.h
diff options
context:
space:
mode:
authorGreg Studer <greg@10gen.com>2013-06-11 10:28:44 -0400
committerGreg Studer <greg@10gen.com>2013-06-12 12:22:14 -0400
commit1e03edb5a6432018af994e1f41e359ae903493a9 (patch)
tree4b5d78aeb41c08262476c14186a4fb01cc5e8bf0 /src/mongo/db/hasher.h
parent6c3225162bcb5aea62fc476b647e14742f2bd65b (diff)
downloadmongo-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.h3
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;