]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/d4n: deleting LFUDAEntry and LFUDAObjEntry instances
authorPritha Srivastava <prsrivas@redhat.com>
Thu, 28 Aug 2025 07:06:07 +0000 (12:36 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Fri, 19 Sep 2025 03:57:34 +0000 (09:27 +0530)
in LFUDAPolicy destructor.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
src/rgw/driver/d4n/d4n_policy.cc
src/rgw/driver/d4n/d4n_policy.h

index 523c58f83729f617a8123280793bf2bc86255b59..f04c348398f9f170870670e83bb33eadd6d23db7 100644 (file)
@@ -391,7 +391,7 @@ int LFUDAPolicy::eviction(const DoutPrefixProvider* dpp, uint64_t size, optional
       return ret;
     }
 
-    ldpp_dout(dpp, 10) << "LFUDAPolicy::" << __func__ << "(): Block " << key << " has been evicted." << dendl;
+    ldpp_dout(dpp, 2) << "LFUDAPolicy::" << __func__ << "(): Block " << key << " has been evicted." << dendl;
 
     if (perfcounter) {
       perfcounter->inc(l_rgw_d4n_cache_evictions);
index 0a6a9de856e915648b01dba8f3ef1941c919824b..c51dd8e0d3f258c0a876614627da8faf27afcf6d 100644 (file)
@@ -199,6 +199,12 @@ class LFUDAPolicy : public CachePolicy {
       quit = true;
       cond.notify_all();
       if (tc.joinable()) { tc.join(); }
+      for (auto& it : entries_map) {
+        delete it.second;
+      }
+      for (auto& it : o_entries_map) {
+        delete it.second.first;
+      }
     } 
 
     virtual int init(CephContext *cct, const DoutPrefixProvider* dpp, asio::io_context& io_context, rgw::sal::Driver *_driver);