]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: fix off-by-one when updating new_last_in_change 28568/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 15 Jun 2019 03:08:39 +0000 (11:08 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 15 Jun 2019 03:14:43 +0000 (11:14 +0800)
commit575c0d1bec07abfbc714f17194a053bd9fed0ce5
tree4f1d9fd65ea9d2a10c6fba0c76aba97238f733a2
parent439ed8ba48af7d33de767107ec13c30c58372abc
mon/OSDMonitor: fix off-by-one when updating new_last_in_change

E.g., osdmap.osd_weight[osdmap.max_osd] does not exist.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/OSDMonitor.cc