mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
Merge pull request #21062 from xiexingguo/wip-hobject-cmp
common/hobject: compare two objects' key directly Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
bff0d38e32
@ -336,9 +336,9 @@ int cmp(const hobject_t& l, const hobject_t& r)
|
||||
return -1;
|
||||
if (l.nspace > r.nspace)
|
||||
return 1;
|
||||
if (l.get_effective_key() < r.get_effective_key())
|
||||
if (l.get_key() < r.get_key())
|
||||
return -1;
|
||||
if (l.get_effective_key() > r.get_effective_key())
|
||||
if (l.get_key() > r.get_key())
|
||||
return 1;
|
||||
if (l.oid < r.oid)
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user