]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: ceph-monstore-tool must close() 2914/head
authorLoic Dachary <ldachary@redhat.com>
Thu, 13 Nov 2014 14:37:48 +0000 (15:37 +0100)
committerLoic Dachary <ldachary@redhat.com>
Thu, 13 Nov 2014 14:37:48 +0000 (15:37 +0100)
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 <ldachary@redhat.com>
src/tools/ceph_monstore_tool.cc

index ec6d985f522dcc4ed67c7b59bfe1e52f4263debc..ea8402b79352c0048dab923b6ea34575b8580eba 100644 (file)
@@ -405,6 +405,7 @@ int main(int argc, char **argv) {
   }
 
   done:
+  st.close();
   if (vm.count("out") && fd > 0) {
     ::close(fd);
   }