]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: don't trim cluster sessions
authorSage Weil <sage@newdream.net>
Sun, 11 Oct 2009 04:26:05 +0000 (21:26 -0700)
committerSage Weil <sage@newdream.net>
Sun, 11 Oct 2009 04:26:05 +0000 (21:26 -0700)
This isn't a perfect test.. we'll need to revisit later.

src/mon/Monitor.cc

index 497be13d0e387b408d1f8f465cf3e66fc8a8cb35..24ebe0887990a96ea55a9216a9873b5b8dbb0dcb 100644 (file)
@@ -782,7 +782,7 @@ void Monitor::tick()
   while (!p.end()) {
     Session *s = *p;
     ++p;
-    if (s->until < now) {
+    if (s->until != utime_t() && s->until < now) {
       dout(10) << " trimming session " << s->inst << " (until " << s->until << " < now " << now << ")" << dendl;
       messenger->mark_down(s->inst.addr);
       remove_session(s);