]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: fix osd_reqid_t comparison strict weak ordering 69746/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Thu, 25 Jun 2026 14:15:46 +0000 (22:15 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Fri, 26 Jun 2026 11:42:06 +0000 (19:42 +0800)
commit7c1e9773653f2575d6691e268a4266f22ba3b61e
treef053a14a9bcd56c0c97fdc4ab8875211738090fc
parentb8098d884409f6b3fbb5c282a3748e76fec6b512
osd: fix osd_reqid_t comparison strict weak ordering

The 'l.inc < r.inc' term in operator< lacked an 'l.name == r.name' guard,
breaking antisymmetry, so it was not a valid strict weak ordering.
Replace it with std::tie.

The only ordered container keyed on osd_reqid_t is
ECInject::write_failures0_reqid (QA/debug error injection), so no
production code path is affected and no backport is needed.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
src/osd/osd_types.h