Skip to content

Commit

Permalink
Merge pull request #55718 from cbodley/wip-64539-quincy
Browse files Browse the repository at this point in the history
quincy: rgw: RGWSI_SysObj_Cache::remove() invalidates after successful delete

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
  • Loading branch information
cbodley committed May 7, 2024
2 parents 2e8fbb4 + 1a76fa5 commit 88d8c41
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/rgw/services/svc_sys_obj_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ int RGWSI_SysObj_Cache::remove(const DoutPrefixProvider *dpp,
optional_yield y)

{
int r = RGWSI_SysObj_Core::remove(dpp, obj_ctx, objv_tracker, obj, y);
if (r < 0) {
return r;
}

rgw_pool pool;
string oid;
normalize_pool_and_obj(obj.pool, obj.oid, pool, oid);
Expand All @@ -99,12 +104,12 @@ int RGWSI_SysObj_Cache::remove(const DoutPrefixProvider *dpp,
cache.invalidate_remove(dpp, name);

ObjectCacheInfo info;
int r = distribute_cache(dpp, name, obj, info, INVALIDATE_OBJ, y);
r = distribute_cache(dpp, name, obj, info, INVALIDATE_OBJ, y);
if (r < 0) {
ldpp_dout(dpp, 0) << "ERROR: " << __func__ << "(): failed to distribute cache: r=" << r << dendl;
}
} // not fatal

return RGWSI_SysObj_Core::remove(dpp, obj_ctx, objv_tracker, obj, y);
return 0;
}

int RGWSI_SysObj_Cache::read(const DoutPrefixProvider *dpp,
Expand Down

0 comments on commit 88d8c41

Please sign in to comment.