]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Expire entries in bucket info cache 18954/head
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 17 Nov 2017 22:15:26 +0000 (17:15 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Mon, 27 Nov 2017 20:57:15 +0000 (15:57 -0500)
commit4489cb58a15647a31ac0546d70400af5668404cb
tree4ddd13819433a34b279f60de81105a5dabb5b3f9
parente397b7e6d0c49d625fb2b2363311e6486f2045fe
rgw: Expire entries in bucket info cache

To bound the degree to which an RGW instance can go out to lunch if
the watch/notify breaks down, force refresh of any cache entry over a
certain age.

Fifteen minutes by default, and expiration can be turned off entirely.

This is separate from the LRU. The LRU removes entries based on the
last time of access. This expiration patch forces refresh based on the
last time they were updated.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/common/options.cc
src/rgw/rgw_rados.h