Looks like this conditional was just set backwards by mistake. There
have been a number of issues with OSDMap versions that are probably
related to this...
(Thanks to some smarts in trim_to, we at least did not trim ALL of
our maps. But on every tick prior to epoch 500 [that's the default]
the leader was trimming all old maps off the system.)
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
dout(10) << " min_last_epoch_clean " << floor << dendl;
unsigned min = g_conf->mon_min_osdmap_epochs;
if (floor + min > paxos->get_version()) {
- if (min > paxos->get_version())
+ if (min < paxos->get_version())
floor = paxos->get_version() - min;
else
floor = 0;