]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/PGMonitor: fix potential underflow
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 18 Aug 2016 11:54:07 +0000 (19:54 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 18 Aug 2016 11:58:26 +0000 (19:58 +0800)
commitcc75e1a2a17cbbbc92ab0ec87ad40b55f966aff2
tree53f8bc10f7b10b977e520f176e8a9ecb048f217c
parent9c065e67d29211352950e8e858b7b55c7d3ada20
mon/PGMonitor: fix potential underflow

h.h.size() could be 0(theoretically), so "h.h.size() - 1" could underflow.

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