]> 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 09:57:59 +0000 (09:57 +0000)
commit74e2bcccd5e2be04ba0387f555ce7c2fe32f34eb
treef6d1499e220d9f058ddd42031d60991ea776e216
parentd7a2c76f925d8b382feafc6c2dfb2a7ed8a440dd
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