]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: add timed namespace invalidation 13038/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 19 Jan 2017 23:14:30 +0000 (18:14 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 24 Jan 2017 13:21:33 +0000 (08:21 -0500)
commitdeb2c1ea985fcb906e47b93fd3d0117794e2d0a1
treec12dec2dd5d97009ef885c8e8fe79861ba984d6b
parent11dce465f0f3ca53a38886b5ca169b17e74653f5
rgw_file: add timed namespace invalidation

With change, librgw/rgw_file consumers can provide an invalidation
callback, which is used by the library to invalidate directories
whose contents should be forgotten.

The existing RGWLib GC mechanism is being used to drive this.  New
configuration params have been added.  The main configurable is
rgw_nfs_namespace_expire_secs, the expire timeout.

Updated post Yehuda review.

Fixes: http://tracker.ceph.com/issues/18651
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/common/config_opts.h
src/include/rados/rgw_file.h
src/rgw/librgw.cc
src/rgw/rgw_file.cc
src/rgw/rgw_file.h
src/rgw/rgw_lib_frontend.h