Skip to content

Commit

Permalink
tools/rados: always call rados.shutdown() before exit()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dragonylffly committed Nov 27, 2018
1 parent 3804f52 commit 2c14926
Showing 1 changed file with 290 additions and 215 deletions.
Loading

0 comments on commit 2c14926

Please sign in to comment.