]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix rgw cache invalidation after unregister_watch() error 50707/head
authorlichaochao <lichaochao2_yewu@cmss.chinamobile.com>
Tue, 28 Mar 2023 03:17:26 +0000 (05:17 +0200)
committerlichaochao <lichaochao2_yewu@cmss.chinamobile.com>
Fri, 31 Mar 2023 05:54:50 +0000 (07:54 +0200)
commitf9aae71af3ad8eee5996c31544d98041968dbbec
treea80b217aa3e79ea81356901bc08e331af6bdc7b3
parentf5c5009eaba4a83cc9a8b031636bfb9af00ad83d
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>
src/rgw/services/svc_notify.cc