diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-09-17 01:25:33 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-09-17 01:26:03 -0400 |
commit | 45d71a84645c47f9a5945b5ee8bed9257aa8cb0f (patch) | |
tree | 4a71a18b85485597d57c1b3964608f4f0c91c5db | |
parent | 61259ea0a3742f7ced106f9642d9247c2fd6c4b7 (diff) | |
download | mongo-45d71a84645c47f9a5945b5ee8bed9257aa8cb0f.tar.gz |
temp safer hashing till remove client id
-rw-r--r-- | util/message.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/message.h b/util/message.h index 2b9119e0ad2..203ad832b99 100644 --- a/util/message.h +++ b/util/message.h @@ -86,7 +86,7 @@ namespace mongo { virtual int getClientId(){ int x = remotePort(); x = x << 16; - x |= ( 0xFF & (long long)this ); + x |= ( ( 0xFF0 & (long long)this ) >> 8 ); // lowest byte in pointer often meaningless return x; } }; |