]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSD: trim_maps - remove nrecieved
authorMatan Breizman <mbreizma@redhat.com>
Thu, 6 Jul 2023 10:22:03 +0000 (10:22 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 19 Jul 2023 12:31:15 +0000 (12:31 +0000)
commitcfda368b49ab87f9b7c47d279ddc488acc0dabaf
treeccd5c550770ed217e8db2d66fafc51ea50e71de5
parent79b1acae7f07412313dcddab9f83e79e3bc88242
osd/OSD: trim_maps - remove nrecieved

The intention of `nrecieved` was to guarantee that we will trim [first, last) of
the current MOSDMap being handled. However, this is not true anymore since we trim based on cluster_osdmap_trim_lower_bound.

For instance, we might begin trimming when we receieve a MOSDMap with first epoch of 799 and last of 800 and cluster_osdmap_trim_lower_bound of 200.
If our superblock's oldest_map is 1 (no trimming occurred yet), we are allowed to trim up to 200.
There is no relation between the current MOSDMap handled amount of epochs receieved
(last - first + 1) to the epoch where we allowed to trim to.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h