From 5925880d1787f3bf5daf20440f782357eba7aec8 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Wed, 10 Jul 2024 15:41:33 +0200 Subject: [PATCH] tools/ceph_objecstore_tool: cleanup collection handle on exit Signed-off-by: Pere Diaz Bou --- src/tools/ceph_objectstore_tool.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 996004f774b..de7db1b7c04 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; -- 2.47.3