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 <ldachary@redhat.com>
This commit is contained in:
Loic Dachary 2014-11-13 15:37:48 +01:00
parent 5ce09198bf
commit 1cd7422a3b

View File

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