]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MDSMonitor: return mon_mds_force_trim_to even if equal to current epoch
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 14 Jul 2021 20:31:21 +0000 (13:31 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 28 Jul 2021 14:07:05 +0000 (07:07 -0700)
commitd9dc2f11d56fb4341ba5823f8d17459d10f3b2c1
tree648a93f6a5d4dde5c9a5659cda1444295d17d92d
parent9297690e9a4158e1ba3a1bdea924e86b586a390c
mon/MDSMonitor: return mon_mds_force_trim_to even if equal to current epoch

The PaxosService code already excludes the value returned by
PaxosService::get_trim_to as the upper bound of the range of epochs to
trim. Without this fix, you need to set mon_mds_force_trim_to to one
greater than the epoch you want to trim _and_ force the current epoch to
be one greater than that; the net result being that you can only force
trimming up to 2 epochs behind the current epoch.

This change is helpful for resolving issue 51673, but not strictly
necessary.

Related-to: https://tracker.ceph.com/issues/51673
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/common/options/mon.yaml.in
src/mon/MDSMonitor.cc