]> 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...
authorJon Bailey <jonathan.bailey1@ibm.com>
Tue, 27 Jan 2026 16:59:28 +0000 (16:59 +0000)
committerJon Bailey <jonathan.bailey1@ibm.com>
Fri, 1 May 2026 17:08:29 +0000 (18:08 +0100)
commitccbeb980515ee148ddb9fd06f6eb2a13c70afb98
tree4aea74047d003e09e2576b936fe8d38e824b4616
parent78ba2e5fc63527cc8017e48ecfa1619f7c98464f
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.
We also add a check to ensure that we don't use stats from a non-primary shard if the head of the log is a partial write, to prevent incorrect stats in fast ec.

Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
src/osd/PeeringState.cc