From cfea5451ecbddbc7102fe32b2bdaa210f89a30e4 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 27 Jul 2018 17:32:32 -0700 Subject: [PATCH] rgw: pubsub: fix events distribution check was located in the wrong place Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_sync_module_pubsub.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw_sync_module_pubsub.cc b/src/rgw/rgw_sync_module_pubsub.cc index 2de53b1e90d..cf49792168e 100644 --- a/src/rgw/rgw_sync_module_pubsub.cc +++ b/src/rgw/rgw_sync_module_pubsub.cc @@ -1116,9 +1116,9 @@ public: /* FIXME: add push notification */ } - if (retcode < 0) { - return set_cr_error(retcode); - } + } + if (retcode < 0) { + return set_cr_error(retcode); } return set_cr_done(); } -- 2.39.5