]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Fix check_past_interval_bounds()
authorMatan Breizman <mbreizma@redhat.com>
Wed, 2 Nov 2022 10:40:03 +0000 (10:40 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 16 May 2023 10:36:52 +0000 (10:36 +0000)
commitab290be288543de4bf800330e51fad4dd78b09d9
tree160a83942bf8de12b6ee6892871b74673db00c72
parenta5ebf417c6824803faad41d47d22a6f1c30ece39
osd: Fix check_past_interval_bounds()

When getting the required past interval bounds we use
oldest_map or current pg info (lec/ec).
Before this change we set oldest_map epoch using the
osd's superblock.oldest_map.
The fix will use the max_oldest_map received with other peers
instead since a specific osd's oldest_map can lag for a while
in order to avoid large workloads.

Fixes: https://tracker.ceph.com/issues/49689
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 0c611b362fb9cc4225f18283f74299551c2c5953)
src/crimson/osd/pg.h
src/osd/PG.cc
src/osd/PG.h
src/osd/PeeringState.cc
src/osd/PeeringState.h