diff options
author | Daniel Gryniewicz <dang@redhat.com> | 2022-07-19 19:06:29 +0200 |
---|---|---|
committer | Daniel Gryniewicz <dang@redhat.com> | 2022-07-27 19:32:53 +0200 |
commit | 3b8fb3d498d39ddb375ea406858ddd6997b8c118 (patch) | |
tree | 865a75c212152c6a966f1cdf8ab6ac5e56bf5b09 /src/rgw/librgw.cc | |
parent | RGW - Zipper - Filter base implementation (diff) | |
download | ceph-3b8fb3d498d39ddb375ea406858ddd6997b8c118.tar.xz ceph-3b8fb3d498d39ddb375ea406858ddd6997b8c118.zip |
RGW - Zipper - Add temporary Filter testing
In order to test filters, we need to be able to instantiate one and
stack it over a store. Add a temporary config option to specify a
filter that can be used for testing. This will be replaced with a
better system once the loadable module work is done.
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
Diffstat (limited to 'src/rgw/librgw.cc')
-rw-r--r-- | src/rgw/librgw.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rgw/librgw.cc b/src/rgw/librgw.cc index 87fbb97ad6d..48d5b304788 100644 --- a/src/rgw/librgw.cc +++ b/src/rgw/librgw.cc @@ -573,8 +573,16 @@ namespace rgw { } #endif + // Get the filter + std::string rgw_filter = "none"; + const auto& config_filter = g_conf().get_val<std::string>("rgw_filter"); + if (config_filter == "base") { + rgw_filter = "base"; + } + store = StoreManager::get_storage(this, g_ceph_context, rgw_store, + rgw_filter, run_gc, run_lc, run_quota, |