]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: fix potential invalid use of iterator
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 10 Apr 2018 07:32:47 +0000 (15:32 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 12 Apr 2018 00:39:22 +0000 (08:39 +0800)
commitc89db880db86540bc97f7e56a2d84aca29b33596
tree017d3260a34300d14cb9f9910e05a4ff41fec959
parent719e13ccfcc6cdf163d03ddfb0f55dbe0e338f48
crush/CrushWrapper: fix potential invalid use of iterator

In choose_leaf mode we normally should have a stack of 2 and
hence below here we still need to re-check the iterator against
the stack loop.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 4ec24128fddd84f529348e460e45606eff42fc03)
src/crush/CrushWrapper.cc