]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
object.h: Sort hobject_t by nibble reversed hash
authorSamuel Just <samuel.just@dreamhost.com>
Wed, 30 Nov 2011 18:38:09 +0000 (10:38 -0800)
committerSamuel Just <samuel.just@dreamhost.com>
Wed, 7 Dec 2011 19:40:10 +0000 (11:40 -0800)
commitcada2f2ef4b1be2ec8cedf4c82d2c1c8d889cef5
treed8c5e3785d6f5a83b1a518a26b1ade32ceff10f9
parent348321a591d3b0db2a4770d165a3bb82b0264a60
object.h: Sort hobject_t by nibble reversed hash

To match the HashIndex ordering, we need to sort hobject_t by the nibble
reversed hash.  We store objects in the filestore in a directory tree
with the least significant nibble at the top and the most at the bottom
to facilitate pg splitting in the future.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/include/object.h