]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_realm_watcher.cc
import ceph 14.2.5
[ceph.git] / ceph / src / rgw / rgw_realm_watcher.cc
index 02e8b130e27f8c99f76e5b59facaa56eb4458f7f..ee154f0f299ebb6c7c4e2badbf22f351d1af8c3a 100644 (file)
@@ -71,13 +71,11 @@ void RGWRealmWatcher::handle_notify(uint64_t notify_id, uint64_t cookie,
 
 void RGWRealmWatcher::handle_error(uint64_t cookie, int err)
 {
+  lderr(cct) << "RGWRealmWatcher::handle_error oid=" << watch_oid << " err=" << err << dendl;
   if (cookie != watch_handle)
     return;
 
-  if (err == -ENOTCONN) {
-    ldout(cct, 4) << "Disconnected watch on " << watch_oid << dendl;
-    watch_restart();
-  }
+  watch_restart();
 }
 
 int RGWRealmWatcher::watch_start(const RGWRealm& realm)