]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: fix potential weight overflow
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 8 Jul 2017 03:47:42 +0000 (11:47 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 10 Jul 2017 03:23:36 +0000 (11:23 +0800)
commit7d07356383d3c7ec6ad1875d1b8c371d730c6ba7
tree5adf1fef25d7e158ec8150d6acc5ea9031c89f0a
parentb08b485ce8b2af9e3a15fb655e694f0e8b52bcec
crush: fix potential weight overflow

E.g.:
./bin/ceph osd crush reweight osd.0 32768

ID WEIGHT      TYPE NAME                                            UP/DOWN REWEIGHT PRIMARY-AFFINITY
-4 32770.00000 root default~hdd
-3           -     host gitbuilder-ceph-rpm-centos7-amd64-basic~hdd
 0           -         osd.0                                             up  1.00000          1.00000
 1     1.00000         osd.1                                             up  1.00000          1.00000
 2     1.00000         osd.2                                             up  1.00000          1.00000
-1 32770.00000 root default
-2           -     host gitbuilder-ceph-rpm-centos7-amd64-basic
 0           -         osd.0                                             up  1.00000          1.00000
 1     1.00000         osd.1                                             up  1.00000          1.00000
 2     1.00000         osd.2                                             up  1.00000          1.00000

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
qa/workunits/mon/crush_ops.sh
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h