]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix rgw cache invalidation after unregister_watch() error 51017/head
authorlichaochao <lichaochao2_yewu@cmss.chinamobile.com>
Tue, 28 Mar 2023 03:17:26 +0000 (05:17 +0200)
committerCasey Bodley <cbodley@redhat.com>
Tue, 11 Apr 2023 13:25:16 +0000 (09:25 -0400)
commit55fe0ed32c0dc1e79ad9a2be692a9d7f85e3a2a0
treeb59c6d1cf3c2414b4323d2f773ab0001937fd266
parent66f2427e85b86dcf72b8c311def3b942dddbecc6
rgw: fix rgw cache invalidation after unregister_watch() error

When a metadata osd fails, an unregister_watch() error may occur,
resulting in an rgw cache invalidation.
By adding an unregister_done flag and when a register_watch() error ,
performing a reinit() operation again,
After the first reinit() failure, the register_watch() will be performed again

Fixes: https://tracker.ceph.com/issues/59217
Signed-off-by: lichaochao <lichaochao2_yewu@cmss.chinamobile.com>
(cherry picked from commit f9aae71af3ad8eee5996c31544d98041968dbbec)
src/rgw/services/svc_notify.cc