Skip to content

Commit cf0d064

Browse files
committed
DAOS-18487 object: amplify credits also for data from parity shard
Signed-off-by: Liang Zhen <gnailzenh@gmail.com>
1 parent eecf6d3 commit cf0d064

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/object/srv_obj_migrate.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,6 +2023,7 @@ migrate_one_ult(void *arg)
20232023
}
20242024

20252025
data_size = daos_iods_len(mrone->mo_iods, mrone->mo_iod_num);
2026+
data_size += daos_iods_len(mrone->mo_iods_from_parity, mrone->mo_iods_num_from_parity);
20262027
if (daos_oclass_is_ec(&mrone->mo_oca)) {
20272028
/* NB: this is a workaround for EC object:
20282029
* The fetch buffer is taken from a pre-registered (R)DMA buffer;
@@ -2038,8 +2039,6 @@ migrate_one_ult(void *arg)
20382039
*/
20392040
degraded_size = data_size * MIN(8, obj_ec_data_tgt_nr(&mrone->mo_oca));
20402041
}
2041-
data_size += daos_iods_len(mrone->mo_iods_from_parity,
2042-
mrone->mo_iods_num_from_parity);
20432042

20442043
D_DEBUG(DB_TRACE, DF_RB ": mrone %p data size is " DF_U64 " %d/%d\n", DP_RB_MPT(tls), mrone,
20452044
data_size, mrone->mo_iod_num, mrone->mo_iods_num_from_parity);

0 commit comments

Comments
 (0)