From: Pritha Srivastava Date: Mon, 28 Aug 2023 11:43:38 +0000 (+0530) Subject: rgw/cache: fixing free space calcuation when data is deleted X-Git-Tag: v20.0.0~2219^2~75 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9052f3e370867eceefcdcd653bd3c3e2e7a11d55;p=ceph.git rgw/cache: fixing free space calcuation when data is deleted from the cache backend. Signed-off-by: Pritha Srivastava --- diff --git a/src/rgw/rgw_ssd_driver.cc b/src/rgw/rgw_ssd_driver.cc index 48029aadeafc..5a44ef4efa2f 100644 --- a/src/rgw/rgw_ssd_driver.cc +++ b/src/rgw/rgw_ssd_driver.cc @@ -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); }