]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Invalidate stats during peering if we are rolling a shard forwards.
authorJon Bailey <jonathan.bailey1@ibm.com>
Fri, 25 Jul 2025 13:16:35 +0000 (14:16 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 17 Sep 2025 08:43:26 +0000 (09:43 +0100)
commit07d8434b749577b3aa2dd39d68cb2cddcdc3570e
treec38221f7dc2ccff4757280d8157ebe60701122a8
parentbc5025151e1ab93fa0eb1ea96be72ab8b8260815
osd: Invalidate stats during peering if we are rolling a shard forwards.

This change will mean we always recalculate stats upon rolling stats forwards. This prevent the situation where we end up with incorrect statistics due to where we always take the stats of the oldest shard during peering; causing outdated pg stats being applied for cases where the oldest shards are shards that don't see partial writes where num_bytes has changed on other places after that point on that shard.

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