]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmon: set the maps-to-keep floor to be at least epoch 0
authorGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 18 Nov 2011 23:56:35 +0000 (15:56 -0800)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Sat, 19 Nov 2011 00:13:29 +0000 (16:13 -0800)
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>
src/mon/OSDMonitor.cc

index 61c7bf58538185e7f67948b67f369e4dc47ed0f7..eef90a2b85c953a0ba65911b5a552c419e5ce5ec 100644 (file)
@@ -1141,7 +1141,7 @@ void OSDMonitor::tick()
     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;