]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rados: use RETURN1_IF_NONZERO instead of RETURN1_IF_NOT_VAL 16589/head
authorYan Jun <yan.jun8@zte.com.cn>
Wed, 26 Jul 2017 06:31:38 +0000 (14:31 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Wed, 26 Jul 2017 06:31:38 +0000 (14:31 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/test/system/rados_open_pools_parallel.cc

index 04a144264acf1036848e1722b12f2287577e754d..6f99c4270de7138a5ba2e47e9ac2e6879730e722 100644 (file)
@@ -81,7 +81,7 @@ public:
     rados_pool_create(cl, m_pool_name.c_str());
     rados_ioctx_t io_ctx;
     printf("%s: rados_ioctx_create.\n", get_id_str());
-    RETURN1_IF_NOT_VAL(0, rados_ioctx_create(cl, m_pool_name.c_str(), &io_ctx));
+    RETURN1_IF_NONZERO(rados_ioctx_create(cl, m_pool_name.c_str(), &io_ctx));
     if (m_open_pool_sem)
       m_open_pool_sem->post();
     rados_ioctx_destroy(io_ctx);