]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ECExtentCache: use default-generated comparison operators
authorKefu Chai <tchaikov@gmail.com>
Fri, 20 Jun 2025 07:31:56 +0000 (15:31 +0800)
committerKefu Chai <tchaikov@gmail.com>
Fri, 20 Jun 2025 10:00:49 +0000 (18:00 +0800)
commit19b4468c930085573ca0078e00a08182115da1bc
treecb2157ca7b6c7bf3f5a72cec6e18f4f5f9eb25ac
parent611dee7286611fb8a5ebfa129dc623abfcd6fc21
osd/ECExtentCache: use default-generated comparison operators

Replace manually implemented operator== and operator!= for Key with
compiler-generated defaults. In C++20, comparison operators can be
explicitly defaulted, and the generated behavior is identical to our
hand-crafted implementation.

This simplifies the code by letting the compiler handle operator
generation automatically.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/osd/ECExtentCache.h