]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
tools/rados: always call rados.shutdown() before exit()
authorLi Wang <laurence.liwang@gmail.com>
Tue, 27 Nov 2018 03:35:53 +0000 (03:35 +0000)
committerLi Wang <laurence.liwang@gmail.com>
Tue, 27 Nov 2018 03:35:53 +0000 (03:35 +0000)
commit2c149262888c50beb9f480a6cd78f77fd5920d1c
tree87297f35cfb5d0bbc878ff2f1810f6bee96a1e84
parent3804f52b109558591d699609749a789b5cfc72b9
tools/rados: always call rados.shutdown() before exit()

When connected to ceph cluster, if call exit(1) directly, will cause the finisher
thread segmentation fault as follows,

Caught signal (Segmentation fault) **in thread 7f45377fe700 thread_name:fn_anonymous

run 'rados mapext' without other arguments could easily get it. This patch fixes it
by calling rados.shutdown() before exit()

Fixes: http://tracker.ceph.com/issues/36732
Signed-off-by: Li Wang <laurence.liwang@gmail.com>
src/tools/rados/rados.cc