Skip to content

Commit 5925880

Browse files
committed
tools/ceph_objecstore_tool: cleanup collection handle on exit
Signed-off-by: Pere Diaz Bou <[email protected]>
1 parent a926a4a commit 5925880

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/ceph_objectstore_tool.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4742,6 +4742,7 @@ int main(int argc, char **argv)
47424742
cout << ostr.str() << std::endl;
47434743
}
47444744

4745+
ch.reset(nullptr);
47454746
int r = mount_readonly ? fs->umount_readonly() : fs->umount();
47464747
if (r < 0) {
47474748
cerr << "umount failed: " << cpp_strerror(r) << std::endl;

0 commit comments

Comments
 (0)