From dbe2b24c41a64eb313e5ad511c7c823a61660b78 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 5 Mar 2015 13:03:02 -0800 Subject: [PATCH] rgw: flush watch after unregistering Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_rados.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 292454cb88e47..57ca5c198a769 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -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; -- 2.39.5