From: haodong.tang Date: Thu, 16 Feb 2017 17:42:45 +0000 (+0800) Subject: mon/OSDMonitor: some cleanup for reweight-by-pg X-Git-Tag: v12.0.1~349^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F13462%2Fhead;p=ceph.git mon/OSDMonitor: some cleanup for reweight-by-pg Signed-off-by: Haodong Tang --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index fae5b876d7b0..2eaa9d8b5a3d 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -560,7 +560,7 @@ int OSDMonitor::reweight_by_utilization(int oload, } else { oss << "osd." << p->first << " weight " << (float)weight / (float)0x10000 << " -> " - << (float)new_weight / (float)0x10000; + << (float)new_weight / (float)0x10000 << "\n"; } if (++num_changed >= max_osds) break; @@ -579,7 +579,7 @@ int OSDMonitor::reweight_by_utilization(int oload, } oss << "osd." << p->first << " weight " << (float)weight / (float)0x10000 << " -> " - << (float)new_weight / (float)0x10000; + << (float)new_weight / (float)0x10000 << "\n"; if (++num_changed >= max_osds) break; }