From: Pritha Srivastava Date: Thu, 24 Aug 2023 04:24:27 +0000 (+0530) Subject: rgw/cache: Modified APIs after removing indexing from X-Git-Tag: v20.0.0~2219^2~65 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=afdb08d5ee17d2163b875347d2e197d1310086cf;p=ceph.git rgw/cache: Modified APIs after removing indexing from cache driver implementation. Signed-off-by: Pritha Srivastava --- diff --git a/src/rgw/rgw_cache_driver.h b/src/rgw/rgw_cache_driver.h index 9dcc1425e7cb..f9e980a01305 100644 --- a/src/rgw/rgw_cache_driver.h +++ b/src/rgw/rgw_cache_driver.h @@ -12,13 +12,6 @@ struct Partition { uint64_t size; }; -struct Entry { - std::string key; - off_t offset; - uint64_t len; - int localWeight; -}; - class CacheDriver { public: CacheDriver() {} @@ -38,11 +31,6 @@ class CacheDriver { virtual std::string get_attr(const DoutPrefixProvider* dpp, const std::string& key, const std::string& attr_name) = 0; virtual int set_attr(const DoutPrefixProvider* dpp, const std::string& key, const std::string& attr_name, const std::string& attr_val) = 0; - /* Entry */ - virtual bool key_exists(const DoutPrefixProvider* dpp, const std::string& key) = 0; - virtual std::vector list_entries(const DoutPrefixProvider* dpp) = 0; - virtual size_t get_num_entries(const DoutPrefixProvider* dpp) = 0; - /* Partition */ virtual Partition get_current_partition_info(const DoutPrefixProvider* dpp) = 0; virtual uint64_t get_free_space(const DoutPrefixProvider* dpp) = 0;