]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: fix strict weak ordering in PeerSpec::operator< 70590/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Wed, 8 Jul 2026 07:00:53 +0000 (15:00 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 27 Jul 2026 18:01:47 +0000 (20:01 +0200)
commitae647ac992c85853406fff7a870ab8e96615e6bc
tree8090800a640fd2a936244d694eee403665207aa1
parent2d5e0bb24629bd3f4c40c7ba98b9cce1bd12180a
rbd-mirror: fix strict weak ordering in PeerSpec::operator<

The mon_host tier branched on "mon_host < rhs.mon_host" but returned the
same comparison, so mon_host > rhs.mon_host fell through to key, both
a < b and b < a could hold.

Only Mirror::m_pool_replayers reaches operator< (via std::pair key).

Fixes: https://tracker.ceph.com/issues/78049
Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
(cherry picked from commit ad6de06803654c73c0cf5e42f4859fc119d107db)
src/tools/rbd_mirror/Types.h