]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: pubsub: fix events distribution
authorYehuda Sadeh <yehuda@redhat.com>
Sat, 28 Jul 2018 00:32:32 +0000 (17:32 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 11 Dec 2018 08:10:43 +0000 (00:10 -0800)
check was located in the wrong place

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_sync_module_pubsub.cc

index 2de53b1e90de47a78cd1c2303b7c9ab5f91bb377..cf49792168e8fcb743bb4ec2ddf5379782d51cdb 100644 (file)
@@ -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();
     }