]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: drop WRITE_{EQ,CMP}_OPERATORS_4()
authorKefu Chai <tchaikov@gmail.com>
Wed, 3 Aug 2022 03:02:52 +0000 (11:02 +0800)
committerKefu Chai <tchaikov@gmail.com>
Thu, 4 Aug 2022 13:33:51 +0000 (21:33 +0800)
commitcba426698f3b6314b90a140bfc8b6e256508beae
tree46c8681628221ea511ac153012c5434d8127b8f3
parentfac4942b03aea76b6fcf107119ee7a54d2b37a2e
common: drop WRITE_{EQ,CMP}_OPERATORS_4()

the default-generated comparison operators can fulfill our needs.

the order of member variables of `ghobject_t` is adjusted to match
the ordering of `ghobject_t`. the default-generated three-way
comparison operator uses the order in which the member variables
are declared to do the lexical comparison.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/common/hobject.h
src/include/cmp.h