]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: flush watch after unregistering 3845/head
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 5 Mar 2015 21:03:02 +0000 (13:03 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Sat, 7 Mar 2015 01:24:14 +0000 (17:24 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rados.cc

index 292454cb88e477178a2b51abcc5ebd3b64c5c174..57ca5c198a76996a2639e41db9912314c439fec1 100644 (file)
@@ -1221,6 +1221,12 @@ int RGWRados::unwatch(uint64_t watch_handle)
 {
   int r = control_pool_ctx.unwatch2(watch_handle);
   if (r < 0) {
+    ldout(cct, 0) << "ERROR: rados->unwatch2() returned r=" << r << dendl;
+    return r;
+  }
+  r = rados->watch_flush();
+  if (r < 0) {
+    ldout(cct, 0) << "ERROR: rados->watch_flush() returned r=" << r << dendl;
     return r;
   }
   return 0;