Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hammer: osd: Ceph Pools' MAX AVAIL is 0 if some OSDs' weight is 0 #6834

Merged
merged 1 commit into from Jan 14, 2016

Commits on Dec 7, 2015

  1. mon/PGMonitor: MAX AVAIL is 0 if some OSDs' weight is 0

    In get_rule_avail(), even p->second is 0, it's possible to be used
    as divisor and quotient is infinity, then is converted to an integer
    which is negative value.
    So we should check p->second value before calculation.
    
    It fixes BUG ceph#13840.
    
    Signed-off-by: Chengyuan Li <chengyli@ebay.com>
    (cherry picked from commit 18713e6)
    chengyli authored and smithfarm committed Dec 7, 2015
    Configuration menu
    Copy the full SHA
    61da13b View commit details
    Browse the repository at this point in the history