]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix up_thru_pending conditional
authorSage Weil <sage@newdream.net>
Mon, 26 Jan 2009 23:25:56 +0000 (15:25 -0800)
committerSage Weil <sage@newdream.net>
Tue, 27 Jan 2009 00:21:52 +0000 (16:21 -0800)
up_thru_pending only meaningful if non-zero.

src/osd/OSD.cc

index 50a818b63c22162a8097a9242942b68f2836083b..867d9a449540117c8ecb8423a06bbd1b0e1a39fd 100644 (file)
@@ -1191,6 +1191,7 @@ void OSD::do_mon_report()
     retry = true;
   }
   if (osdmap->exists(whoami) && 
+      up_thru_pending &&
       up_thru_pending < osdmap->get_up_thru(whoami)) {
     dout(10) << "up_thru_pending " << up_thru_pending << " < " << osdmap->get_up_thru(whoami) 
             << " -- still pending" << dendl;