]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: allow uniform buckets with no items 13521/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 15 Feb 2017 20:46:26 +0000 (21:46 +0100)
committerLoic Dachary <ldachary@redhat.com>
Sun, 19 Feb 2017 09:00:55 +0000 (10:00 +0100)
commitd4990c9d98bb16fa8b2f2d9cd6108afc9f86f7a1
tree4ac6d3231d9e504888fb2ed440e4e197bbc45a4c
parentc1c1f2e408b6bb8032dc31660d0e1712311d44da
crush: allow uniform buckets with no items

When a uniform bucket is created with zero size, it returns on error
because crush_multiplication_is_unsafe returns false. Since the goal
of this safegard is to avoid overflow, it should not fail.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/crush/builder.c