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

Conversation

tchaikov
Copy link
Contributor

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
Copy link
Contributor Author

retest this please.

@tchaikov tchaikov force-pushed the wip-osd-exit-directly-on-failure branch from f04edce to 164fd5f Compare August 17, 2017 13:55
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
Copy link
Contributor Author

@tchaikov tchaikov merged commit 053f6a6 into ceph:master Aug 21, 2017
@tchaikov tchaikov deleted the wip-osd-exit-directly-on-failure branch August 21, 2017 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants