From 90aaed744243dfc7c620f91e19fc0bfa233f711f Mon Sep 17 00:00:00 2001 From: huangjun Date: Tue, 21 Apr 2015 14:04:40 +0800 Subject: [PATCH] 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) --- src/tools/ceph_monstore_tool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/ceph_monstore_tool.cc b/src/tools/ceph_monstore_tool.cc index 744000eba872e..7ea86ba992168 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; -- 2.39.5