]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmap: show weight for out osds
authorSage Weil <sage@newdream.net>
Tue, 4 Oct 2011 20:19:50 +0000 (13:19 -0700)
committerSage Weil <sage@newdream.net>
Tue, 4 Oct 2011 20:44:55 +0000 (13:44 -0700)
This info is reduncant (weight is 0 for out osds), but makes the output
cleaner.

Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/OSDMap.cc

index b16f2cee7041f3a8c002be692c9e127a1c85bb92..3e626b29ce1088a01cf6f6cb3724342046cdda21 100644 (file)
@@ -151,8 +151,7 @@ void OSDMap::print(ostream& out) const
       out << "osd." << i;
       out << (is_up(i) ? " up  ":" down");
       out << (is_in(i) ? " in ":" out");
-      if (is_in(i))
-       out << " weight " << get_weightf(i);
+      out << " weight " << get_weightf(i);
       const osd_info_t& info(get_info(i));
       out << " " << info;
       out << " " << get_addr(i) << " " << get_cluster_addr(i) << " " << get_hb_addr(i);