From: Loic Dachary Date: Thu, 13 Nov 2014 14:37:48 +0000 (+0100) Subject: mon: ceph-monstore-tool must close() X-Git-Tag: v0.90~78^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2914%2Fhead;p=ceph.git 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 --- diff --git a/src/tools/ceph_monstore_tool.cc b/src/tools/ceph_monstore_tool.cc index ec6d985f522d..ea8402b79352 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); }