]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix rgw cache invalidation after unregister_watch() error 54014/head
authorlichaochao <lichaochao2_yewu@cmss.chinamobile.com>
Tue, 28 Mar 2023 03:17:26 +0000 (05:17 +0200)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Sat, 14 Oct 2023 09:44:37 +0000 (16:44 +0700)
commit42bc3580543adaa5b92d91709af207b638f93f7c
tree496068bec11ff137a323b8b376c169be3ed57750
parent129959fe9d0ef9f0a81dc3637356e2bd1f39bfe8
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