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>
(cherry picked from commit
2c149262888c50beb9f480a6cd78f77fd5920d1c)
Conflicts:
src/tools/rados/rados.cc
- removed conflicts in error conditions
- no clearomap option
- no set-chunk option
- no tier-promote option
- no touch option
- no stat2 option
- no unset-manifest
- removed std::make_unique<JSONFormatter> as not defined