From 515c767798c157ffc385d61f38f578359391c5ec Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 19 Apr 2011 14:30:38 -0700 Subject: [PATCH] osdmon: Clean up debug output on map full flag. Signed-off-by: Greg Farnum --- src/mon/OSDMonitor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 235ef64bad012..e4d2b0b2a133a 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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 && -- 2.39.5