]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/rados/rados:fixup the judgment value 10893/head
authorzhang.zezhu <zhang.zezhu@zte.com.cn>
Fri, 26 Aug 2016 10:09:47 +0000 (10:09 +0000)
committerzhang.zezhu <zhang.zezhu@zte.com.cn>
Fri, 26 Aug 2016 10:09:47 +0000 (10:09 +0000)
Signed-off-by: zhang.zezhu <zhang.zezhu@zte.com.cn>
src/tools/rados/rados.cc

index f3d3da4eaae4ca3b7d3d2c7a04d907668ed73405..01ac08c26580d6e4421435fabdbdb73b2a3b83f1 100644 (file)
@@ -1768,9 +1768,8 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
 
   // open rados
   ret = rados.init_with_context(g_ceph_context);
-  if (ret) {
+  if (ret < 0) {
      cerr << "couldn't initialize rados: " << cpp_strerror(ret) << std::endl;
-     ret = -1;
      goto out;
   }