From: Yan Jun Date: Wed, 26 Jul 2017 06:25:42 +0000 (+0800) Subject: test/rados: fix wrong parameter order in RETURN1_IF_NOT_VAL X-Git-Tag: v12.1.2~57^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dd26fb7d04428b6b83f8adda9f7f3aa4451eb911;p=ceph.git test/rados: fix wrong parameter order in RETURN1_IF_NOT_VAL Signed-off-by: Yan Jun --- diff --git a/src/test/system/st_rados_watch.cc b/src/test/system/st_rados_watch.cc index 4909f37ae939..d8174bd938df 100644 --- a/src/test/system/st_rados_watch.cc +++ b/src/test/system/st_rados_watch.cc @@ -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(notify_cb), - reinterpret_cast(&num_notifies)), - m_watch_retcode + reinterpret_cast(&num_notifies)) ); if (m_watch_sem) { m_watch_sem->post();