]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: some cleanup for reweight-by-pg 13462/head
authorhaodong.tang <tanghaodong25@gmail.com>
Thu, 16 Feb 2017 17:42:45 +0000 (01:42 +0800)
committerhaodong.tang <tanghaodong25@gmail.com>
Thu, 16 Feb 2017 17:42:45 +0000 (01:42 +0800)
Signed-off-by: Haodong Tang <haodong.tang@intel.com>
src/mon/OSDMonitor.cc

index fae5b876d7b02c615a519d7498c43de6adff2b3a..2eaa9d8b5a3d847a433d67a5173c90bb12032a55 100644 (file)
@@ -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;
       }