]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmon: Clean up debug output on map full flag.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Tue, 19 Apr 2011 21:30:38 +0000 (14:30 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Tue, 19 Apr 2011 21:55:43 +0000 (14:55 -0700)
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/mon/OSDMonitor.cc

index 235ef64bad012212d9ab99e1d9707e003cb530b1..e4d2b0b2a133a1e183c5523049a7a54554515b21 100644 (file)
@@ -1025,8 +1025,8 @@ void OSDMonitor::tick()
     if (!mon->pgmon()->pg_map.full_osds.empty()) {
       dout(5) << "There are full osds, setting full flag" << dendl;
       add_flag(CEPH_OSDMAP_FULL);
-    } else {
-      dout(10) << "No full osds, removing full flag (if it's set)" << dendl;
+    } else if (osdmap.test_flag(CEPH_OSDMAP_FULL)){
+      dout(10) << "No full osds, removing full flag" << dendl;
       remove_flag(CEPH_OSDMAP_FULL);
     }
     if (pending_inc.new_flags != -1 &&