From 1cd7422a3b5a0577a9bc3e844bb22c93bacea988 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 13 Nov 2014 15:37:48 +0100 Subject: [PATCH] mon: ceph-monstore-tool must close() Otherwise it asserts because the destructor checks for the is_open flag. http://tracker.ceph.com/issues/10093 Fixes: #10093 Signed-off-by: Loic Dachary --- src/tools/ceph_monstore_tool.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/ceph_monstore_tool.cc b/src/tools/ceph_monstore_tool.cc index ec6d985f522dc..ea8402b79352c 100644 --- a/src/tools/ceph_monstore_tool.cc +++ b/src/tools/ceph_monstore_tool.cc @@ -405,6 +405,7 @@ int main(int argc, char **argv) { } done: + st.close(); if (vm.count("out") && fd > 0) { ::close(fd); } -- 2.39.5