]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/cephfs: flush output before returning
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 6 Jun 2016 01:54:30 +0000 (09:54 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 6 Jun 2016 02:19:55 +0000 (10:19 +0800)
Otherwise caller won't get the output message correctly.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/tools/cephfs/TableTool.cc

index 3c4ff8c0718ce0f5eb7b524bdc92139d2a33b74c..dde8e8cc77b1b267c1e1ee4501cf6de59f3c305d 100644 (file)
@@ -366,7 +366,6 @@ int TableTool::main(std::vector<const char*> &argv)
       jf.open_object_section("reset_snap_status");
       jf.dump_int("result", r);
       jf.close_section();
-      return r;
     } else {
       derr << "Invalid table '" << table << "'" << dendl;
       usage();