]> git.apps.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)
committerJoao Eduardo Luis <joao@redhat.com>
Tue, 20 Jan 2015 16:13:48 +0000 (16:13 +0000)
commit8be6a6ab2aa5a000a39c73a98b11a0ab32fffa1c
tree4635b5751709af0d5af2db571ce2bceb7e7f6b7a
parent50547dc3c00b7556e26b9a44ec68640c5c3a2384
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>
src/mon/PGMonitor.cc