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

osd: exit(1) directly without lock if init fails #16647

Merged
merged 1 commit into from
Aug 21, 2017

Commits on Aug 17, 2017

  1. osd: exit(1) directly without lock if init fails

    if init fails to connect to a monitor, we just exit(1), there is no need
    to set the `r` or lock the grand osd_lock for this. this change also
    silences the warning of clang analyzer:
    
    Value stored to 'r' is never read
    
    Signed-off-by: Kefu Chai <kchai@redhat.com>
    tchaikov committed Aug 17, 2017
    Configuration menu
    Copy the full SHA
    164fd5f View commit details
    Browse the repository at this point in the history