From: Dan van der Ster Date: Fri, 13 Nov 2020 21:45:01 +0000 (+0100) Subject: mon/PaxosService: more debug output in maybe_trim X-Git-Tag: v16.1.0~515^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bea602243c670f75eb631d9e1f7e90bcc46d0331;p=ceph.git mon/PaxosService: more debug output in maybe_trim Add debug output if a map is not trimmed due to being less than the initial committed. Signed-off-by: Dan van der Ster --- diff --git a/src/mon/PaxosService.cc b/src/mon/PaxosService.cc index 82fd2b93afb91..47222ee673466 100644 --- a/src/mon/PaxosService.cc +++ b/src/mon/PaxosService.cc @@ -378,8 +378,11 @@ void PaxosService::maybe_trim() return; version_t trim_to = get_trim_to(); - if (trim_to < get_first_committed()) + if (trim_to < get_first_committed()) { + dout(10) << __func__ << " trim_to " << trim_to << " < first_committed" + << get_first_committed() << dendl; return; + } version_t to_remove = trim_to - get_first_committed(); if (g_conf()->paxos_service_trim_min > 0 &&