]> git-server-git.apps.pok.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>
Tue, 10 Apr 2018 08:21:49 +0000 (16:21 +0800)
commit4ec24128fddd84f529348e460e45606eff42fc03
treed0ea2d315380561524ad5b081d171da06f8b01ff
parent4eb4d4fb0f59d963ca36543d107922992c44ac2f
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>
src/crush/CrushWrapper.cc