]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crush/CrushWrapper: behave with empty weight vector
authorKefu Chai <kchai@redhat.com>
Thu, 16 Jan 2020 07:49:58 +0000 (15:49 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 16 Jan 2020 14:14:00 +0000 (22:14 +0800)
commit7c1964f5d9ad466229134e0322090ba8081f8e35
treeafc298179d67867ce1a95c622553eb78638efa9d
parent5098d6a436914b47072e28e4aa4a1ad8b8a3bd26
crush/CrushWrapper: behave with empty weight vector

should not dereference an empty vector.

Fixes: https://tracker.ceph.com/issues/43404
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crush/CrushWrapper.h