From: Pere Diaz Bou Date: Wed, 10 Jul 2024 13:41:33 +0000 (+0200) Subject: tools/ceph_objecstore_tool: cleanup collection handle on exit X-Git-Tag: v20.0.0~1331^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5925880d1787f3bf5daf20440f782357eba7aec8;p=ceph.git tools/ceph_objecstore_tool: cleanup collection handle on exit Signed-off-by: Pere Diaz Bou --- diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 996004f774bc..de7db1b7c040 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -4742,6 +4742,7 @@ out: cout << ostr.str() << std::endl; } + ch.reset(nullptr); int r = mount_readonly ? fs->umount_readonly() : fs->umount(); if (r < 0) { cerr << "umount failed: " << cpp_strerror(r) << std::endl;