mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
Merge pull request #15765 from jimmyway/wip-ec-plan-cleanup
osd/ECTransaction: cleanup the redundant check which works in overwrite IO context Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
04377fdd8b
@ -51,10 +51,6 @@ namespace ECTransaction {
|
||||
uint64_t projected_size =
|
||||
hinfo->get_projected_total_logical_size(sinfo);
|
||||
|
||||
if (i.second.has_source()) {
|
||||
plan.invalidates_cache = true;
|
||||
}
|
||||
|
||||
if (i.second.deletes_first()) {
|
||||
ldpp_dout(dpp, 20) << __func__ << ": delete, setting projected size"
|
||||
<< " to 0" << dendl;
|
||||
@ -63,6 +59,8 @@ namespace ECTransaction {
|
||||
|
||||
hobject_t source;
|
||||
if (i.second.has_source(&source)) {
|
||||
plan.invalidates_cache = true;
|
||||
|
||||
ECUtil::HashInfoRef shinfo = get_hinfo(source);
|
||||
projected_size = shinfo->get_projected_total_logical_size(sinfo);
|
||||
plan.hash_infos[source] = shinfo;
|
||||
|
Loading…
Reference in New Issue
Block a user