other implementations of librados::WatchCtx2 in radosgw reconnect the
watch on any error code, not just -ENOTCONN
Fixes: https://tracker.ceph.com/issues/70270
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
8dbcb175e46fc63a5efa40c03cea49dceba40e26)
if (cookie != handle) {
return;
}
- if (err == -ENOTCONN) {
- ldpp_dout(dpp, 4) << "Disconnected watch on " << ref.obj << dendl;
- restart();
- }
+ ldpp_dout(dpp, 4) << "Disconnected watch on " << ref.obj
+ << " err=" << err << dendl;
+ restart();
}
}; // Watcher