]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/osd_types: add pg_t::compare()
authorKefu Chai <kchai@redhat.com>
Sun, 29 Dec 2019 11:58:53 +0000 (19:58 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 15 Jan 2020 02:55:43 +0000 (10:55 +0800)
commita44bb9f5bf5f5834d65bd1401101cfcd85eee7b6
treebe9df45d166e28a7882ffd10546abde05e96185a
parent1970b0ceda3c068bff473393d0233c376adf6357
osd/osd_types: add pg_t::compare()

it's equivalent to the `<=>` operator in C++20. it helps to simplify the
definition of other equality operators.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/osd_types.h