]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: PGMonitor: available size 0 if no osds on pool's ruleset
authorJoao Eduardo Luis <joao@redhat.com>
Fri, 16 Jan 2015 18:13:05 +0000 (18:13 +0000)
committerLoic Dachary <ldachary@redhat.com>
Tue, 17 Mar 2015 09:55:40 +0000 (10:55 +0100)
commit95ec68505ce4a26ea707716791cfb1e46a75ed25
tree6bda9072a92e0b667f213d0777577e4dd1aaf502
parent1c480b39acc184018d976beddc55187f86dfff1a
mon: PGMonitor: available size 0 if no osds on pool's ruleset

get_rule_avail() may return < 0, which we were using blindly assuming it
would always return an unsigned value.  We would end up with weird
values if the ruleset had no osds.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
(cherry picked from commit 8be6a6ab2aa5a000a39c73a98b11a0ab32fffa1c)
src/mon/PGMonitor.cc