summaryrefslogtreecommitdiffstats
path: root/src/mon
diff options
context:
space:
mode:
authorxie xingguo <xie.xingguo@zte.com.cn>2016-05-05 10:37:49 +0200
committerxie xingguo <xie.xingguo@zte.com.cn>2016-05-07 03:16:33 +0200
commit9701f4da9bb9c58dcc6924b2e32512be8db2d71a (patch)
tree91ebd5f8b5c52ed8714c0477478bf3439b4a0498 /src/mon
parentmon/OSDMonitor: avoid to reweight a currently out osd (diff)
downloadceph-9701f4da9bb9c58dcc6924b2e32512be8db2d71a.tar.xz
ceph-9701f4da9bb9c58dcc6924b2e32512be8db2d71a.zip
mon/OSDMonitor: fix dump type mismatch
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Diffstat (limited to 'src/mon')
-rw-r--r--src/mon/OSDMonitor.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc
index 3991c3c06d1..3b080c2a944 100644
--- a/src/mon/OSDMonitor.cc
+++ b/src/mon/OSDMonitor.cc
@@ -570,9 +570,9 @@ int OSDMonitor::reweight_by_utilization(int oload,
ostringstream oss;
if (f) {
f->open_object_section("reweight_by_utilization");
- f->dump_unsigned("overload_min", oload);
+ f->dump_int("overload_min", oload);
f->dump_float("max_change", max_changef);
- f->dump_float("max_change_osds", max_osds);
+ f->dump_int("max_change_osds", max_osds);
f->dump_float("average_utilization", average_util);
f->dump_float("overload_utilization", overload_util);
} else {
@@ -653,7 +653,7 @@ int OSDMonitor::reweight_by_utilization(int oload,
}
if (f) {
f->open_object_section("osd");
- f->dump_unsigned("osd", p->first);
+ f->dump_int("osd", p->first);
f->dump_float("weight", (float)weight / (float)0x10000);
f->dump_float("new_weight", (float)new_weight / (float)0x10000);
f->close_section();