]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph.in: only shut down rados on clean exit
authorSage Weil <sage@redhat.com>
Mon, 9 Mar 2020 17:26:06 +0000 (12:26 -0500)
committerSage Weil <sage@redhat.com>
Mon, 9 Mar 2020 17:26:58 +0000 (12:26 -0500)
commitc8f353c50bcd2a30be9e3600dba91912b8cd0429
treee4bf8d697121a022e6aa549b4f541adc3bec932a
parent5206bfbd48467d551aaf2e0fce29cfcebfa44e33
ceph.in: only shut down rados on clean exit

If we exit due to a timeout, then calling rados shutdown can lead to all
sorts of problems, because we may still have another thread that is
trying to call rados_connect and/or do some work, and rados_connect
and rados_shutdown don't (and can't!) really behave well when racing
against each other.

Note that shutdown here isn't that important--the process is about to
exit anyway.  It's only useful to exercise the shutdown code path more
often.

Fixes: https://tracker.ceph.com/issues/44526
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph.in