|
Author:
{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}
Message: SERVER-15081 Improve DiskLoc::Hasher
The old implementation had a few problems. For one thing, it generated the
same hash for DiskLoc(1,2) and DiskLoc(2,1) as the combination operation
(xor) is commutative. Additionally the low order bits of the offset have low
entropy due to powerOfTwoSizing. Even without it, they are always at least
4-byte aligned.
Branch: master
https://github.com/mongodb/mongo/commit/d2a83bba7da59ec601ec37617ce0d7ea7e2b79ac
|