]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: detach_bucket must test item >= 0 not > 0 913/head
authorLoic Dachary <loic@dachary.org>
Fri, 6 Dec 2013 23:31:54 +0000 (00:31 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 6 Dec 2013 23:31:54 +0000 (00:31 +0100)
commitcbeb1f4510c7806c1696cff05950fda12c4cc88c
tree213187582c1f824f244d59a1c3e8aab013456267
parent2cd73f9d3e7674ad872f05de6da7b2d83d2492f7
crush: detach_bucket must test item >= 0 not > 0

Since detach_bucket is a private helper solely used by move_bucket which
contains another ( correct ) safeguard, the code cannot be reached and
the problem can never happen. If another function uses detach_bucket,
it may happen.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/crush/CrushWrapper.h