]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/cache: Modified APIs after removing indexing from
authorPritha Srivastava <prsrivas@redhat.com>
Thu, 24 Aug 2023 04:24:27 +0000 (09:54 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Tue, 2 Apr 2024 15:54:50 +0000 (21:24 +0530)
cache driver implementation.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
src/rgw/rgw_cache_driver.h

index 9dcc1425e7cb85fabc7c4605b4ef0685e57a242c..f9e980a0130597ee23c9863fa2354397f21e2422 100644 (file)
@@ -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<Entry> 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;