]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: ceph-monstore-tool must do out_store.close() 4411/head
authorhuangjun <hjwsm1989@gmail.com>
Tue, 21 Apr 2015 06:04:40 +0000 (14:04 +0800)
committerhuangjun <hjwsm1989@gmail.com>
Tue, 21 Apr 2015 09:50:03 +0000 (17:50 +0800)
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>
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;