]> 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 09:57:59 +0000 (09:57 +0000)
commit6eaa9bdced002cbbe34a016f061e3a3d22ef7984
treed3d0ac8f48cc135e8cd80c5aeb7e70a05ac70444
parent16fe4cced9841f2150d2f507de45e5d7c6d5da85
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