]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: fix potential realm watch lost
authorTianshan Qu <tianshan@xsky.com>
Sun, 28 Jul 2019 16:42:39 +0000 (00:42 +0800)
committerTianshan Qu <tianshan@xsky.com>
Sun, 28 Jul 2019 16:42:39 +0000 (00:42 +0800)
commitc2d6cbe1b1f4b7c26fa8da4eefa291b4bdb48835
tree0fd723f5c7e6b9f0ed9d54d499747155bafc11b6
parent4a91c6b001f2dc6ff6df72bf09fa103687c890a3
rgw: fix potential realm watch lost

realm watch only restart on -ENOTCONN, but if we fail to maintain the watch ping, the OSD will return -ETIMEDOUT.
The objecter will keep the watch err on last_error, if last_error not empty, it will not call handle_error in future error,
so it will never get the chance to rewatch on following -ENOTCONN error.

Fixes: http://tracker.ceph.com/issues/40991
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
src/rgw/rgw_realm_watcher.cc