]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: take all-0 weights as a special case 27126/head
authorKefu Chai <kchai@redhat.com>
Fri, 22 Mar 2019 13:36:13 +0000 (21:36 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Mar 2019 14:31:00 +0000 (22:31 +0800)
commit2d113dedf851995e000d3cce136b69bfa94b6fe0
tree59e379d8cc8cc1917aa71d16a342a97d1165685e
parent0cb9addd8316e73dd6b5919d6631957c45f2c564
mon/MonClient: take all-0 weights as a special case

if all weights of monitors are 0, it means the administrator want to use
uniform distribution for the load balance. see page.2 of
https://www.ietf.org/rfc/rfc2782.txt .

so remove the default weight of 10.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/MonClient.cc
src/mon/MonMap.cc
src/mon/MonMap.h