]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Reduce the amount of status invalidations when rolling shards forwards during... 65562/head
authorJon Bailey <jonathan.bailey1@ibm.com>
Wed, 20 Aug 2025 10:11:09 +0000 (11:11 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 17 Sep 2025 08:43:26 +0000 (09:43 +0100)
commitba483851c1642573b0a9b4e2f5b6c768175bff6b
tree906cfd89090e9a9bed72bdbcae667471c465ef3b
parent4eb4b5e01ed0a96ec20022ab106b9f2fe8292cf7
osd: Reduce the amount of status invalidations when rolling shards forwards during peering

Currently stats invalidations happen during peering when rolling forward shards.
We can reduce this so we only invalidate the stats when we don't have any other shards at the version we want to roll the stats forwards to.
In the cases where we have a shard with the stats at the correct version, we use those stats instead of invalidating.
If we do not have any shards with the correct version of stats, we do the invalidate as before.

Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
(cherry picked from commit b5cad2694569b7f0eef173f87a7eecb2ddd6b27e)
src/osd/PeeringState.cc
src/osd/PeeringState.h