]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ghobject_t: change sort order (max, shard, hobj, gen)
authorSage Weil <sage@redhat.com>
Fri, 12 Dec 2014 00:28:48 +0000 (16:28 -0800)
committerSage Weil <sage@redhat.com>
Fri, 19 Jun 2015 00:02:46 +0000 (17:02 -0700)
commit8800224bc7c383c53de3ec90d047544afe54f331
tree9a56a53643237c7ec092af24ba9dae9769e2e202
parent27bfa13259da4f880eeb6299f72e0181b0dea14e
ghobject_t: change sort order (max, shard, hobj, gen)

Go from (hobj, shard, gen) -> (max, shard, hobj, gen)

This makes the ghobject_t's sort in a way that groups them by PG, which
will likely be useful in the future for ObjectStore implementations.
Notably, we get a ghobject_t MAX value that is distinct from the
hobject_t one.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/hobject.cc
src/common/hobject.h
src/include/cmp.h