]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/cache: fixing free space calcuation when data is deleted
authorPritha Srivastava <prsrivas@redhat.com>
Mon, 28 Aug 2023 11:43:38 +0000 (17:13 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Tue, 2 Apr 2024 15:54:50 +0000 (21:24 +0530)
from the cache backend.

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

index 48029aadeafc94dd745e79a07bbf5d3c15e06b03..5a44ef4efa2f859efd6abb5c8697fae71a597909 100644 (file)
@@ -238,6 +238,9 @@ int SSDDriver::delete_data(const DoutPrefixProvider* dpp, const::std::string& ke
         return -EIO;
     }
 
+    efs::space_info space = efs::space(partition_info.location);
+    this->free_space = space.available;
+
     return remove_entry(dpp, key);
 }