]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librados: don't release handler if set_pg_num failed 32112/head
authorhuangjun <huangjun@xsky.com>
Mon, 9 Dec 2019 06:44:16 +0000 (14:44 +0800)
committerhuangjun <huangjun@xsky.com>
Fri, 13 Dec 2019 05:56:38 +0000 (13:56 +0800)
The handler will be released by RadosTestNS::TearDownTestCase()
before process exit.

Signed-off-by: huangjun <huangjun@xsky.com>
src/test/librados/test_common.cc

index 013f5c3b792bcdac0a2e57429bdbf6cd54c688cf..c17b710d17c5f94b3e81a7f2cf96a1daa65621af 100644 (file)
@@ -132,7 +132,6 @@ std::string with_healthy_cluster(rados_t* cluster,
       throw pool_op_error{pool_name, "wait_for_healthy", r};
     }
   } catch (const pool_op_error& e) {
-    rados_shutdown(*cluster);
     return e.what();
   }
   return "";