]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
messages/MOSDMap: Rename oldest_map to cluster_osdmap_trim_lower_bound
authorMatan Breizman <mbreizma@redhat.com>
Wed, 1 Feb 2023 08:49:19 +0000 (08:49 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 16 May 2023 10:36:52 +0000 (10:36 +0000)
commitc7473bc80568e4fde159534cf3cfe85a00d3241a
tree902ff64967356d23ae9474a87c3e020fe28618c9
parentac4b0d9aeabb21b25c852598214d4c2b56c9b538
messages/MOSDMap: Rename oldest_map to cluster_osdmap_trim_lower_bound

Previously, MOSDMap messages sent to other OSDs were populated with the
superblocks's oldest_map. We should, instead, use the superblock's
cluster_osdmap_trim_lower_bound because oldest map is merely a marker
for each osd's trimming progress.

As specified in the docs:
***
We use cluster_osdmap_trim_lower_bound rather than a specific osd's oldest_map
because we don't necessarily trim all MOSDMap::oldest_map. In order to avoid
doing too much work at once we limit the amount of osdmaps trimmed using
``osd_target_transaction_size`` in OSD::trim_maps().
For this reason, a specific OSD's oldest_map can lag behind
OSDSuperblock::cluster_osdmap_trim_lower_bound
for a while.
***

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 721c9aea1869bf95a167b8879756b4f71fbf41bf)
doc/dev/osd_internals/past_intervals.rst
src/messages/MOSDMap.h
src/mon/OSDMonitor.cc
src/osd/OSD.cc
src/test/mon/test_mon_workloadgen.cc