From: huangjun Date: Tue, 21 Apr 2015 06:04:40 +0000 (+0800) Subject: tools: ceph-monstore-tool must do out_store.close() X-Git-Tag: v0.94.6~17^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=90aaed744243dfc7c620f91e19fc0bfa233f711f;p=ceph.git tools: ceph-monstore-tool must do out_store.close() this change fixes the "store-copy" command. Like the bug reported in http://tracker.ceph.com/issues/10093. Signed-off-by: huangjun (cherry picked from commit d85e0f8c50fce62be012506f7ffcb1cdeb0c819c) --- diff --git a/src/tools/ceph_monstore_tool.cc b/src/tools/ceph_monstore_tool.cc index 744000eba872..7ea86ba99216 100644 --- a/src/tools/ceph_monstore_tool.cc +++ b/src/tools/ceph_monstore_tool.cc @@ -686,7 +686,7 @@ int main(int argc, char **argv) { << stringify(si_t(total_size)) << ")" << std::endl; } while (it->valid()); - + out_store.close(); std::cout << "summary: copied " << total_keys << " keys, using " << total_tx << " transactions, totalling " << stringify(si_t(total_size)) << std::endl;