]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rados: fix wrong parameter order in RETURN1_IF_NOT_VAL
authorYan Jun <yan.jun8@zte.com.cn>
Wed, 26 Jul 2017 06:25:42 +0000 (14:25 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Wed, 26 Jul 2017 06:25:42 +0000 (14:25 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/test/system/st_rados_watch.cc

index 4909f37ae939b872c19e7065f1a08d8f71a3391d..d8174bd938df732ee320faae2f0f884339a8ef01 100644 (file)
@@ -72,11 +72,10 @@ run()
   RETURN1_IF_NONZERO(rados_ioctx_create(cl, m_pool_name.c_str(), &io_ctx));
   printf("%s: watching object %s\n", get_id_str(), m_obj_name.c_str());
 
-  RETURN1_IF_NOT_VAL(
+  RETURN1_IF_NOT_VAL(m_watch_retcode,
     rados_watch(io_ctx, m_obj_name.c_str(), 0, &handle,
                reinterpret_cast<rados_watchcb_t>(notify_cb),
-               reinterpret_cast<void*>(&num_notifies)),
-    m_watch_retcode
+               reinterpret_cast<void*>(&num_notifies))
     );
   if (m_watch_sem) {
     m_watch_sem->post();