]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: ceph-monstore-tool must do out_store.close()
authorhuangjun <hjwsm1989@gmail.com>
Tue, 21 Apr 2015 06:04:40 +0000 (14:04 +0800)
committerLoic Dachary <ldachary@redhat.com>
Fri, 29 Jan 2016 04:34:42 +0000 (11:34 +0700)
this change fixes the "store-copy" command.
Like the bug reported in http://tracker.ceph.com/issues/10093.

Signed-off-by: huangjun <hjwsm1989@gmail.com>
(cherry picked from commit d85e0f8c50fce62be012506f7ffcb1cdeb0c819c)

src/tools/ceph_monstore_tool.cc

index 744000eba872e1e230284c44d208f41a2a33a201..7ea86ba992168f96e869c78be186d2bf5fab5ce7 100644 (file)
@@ -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;