]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Reduce the amount of status invalidations when rolling shards forwards during... 64917/head
authorJon Bailey <jonathan.bailey1@ibm.com>
Wed, 20 Aug 2025 10:11:09 +0000 (11:11 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Thu, 4 Sep 2025 10:36:06 +0000 (11:36 +0100)
commitb5cad2694569b7f0eef173f87a7eecb2ddd6b27e
treedc4c729b1888c2e3cfae5a8061f2b192fdc29fac
parentac4e0926bbac4ee4d8e33110b8a434495d730770
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>
src/osd/PeeringState.cc
src/osd/PeeringState.h