Skip to content

Commit

Permalink
DAOS-16001 placement: fix cases for delay_rebuild
Browse files Browse the repository at this point in the history
Features: rebuild
Allow-unstable-test: true

Required-githooks: true

Signed-off-by: Xuezhao Liu <xuezhao.liu@intel.com>
  • Loading branch information
liuxuezhao authored and jolivier23 committed Jun 12, 2024
1 parent c4b95eb commit f186a50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/placement/pl_map_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ is_comp_avaible(struct pool_component *comp, uint32_t allow_version,
status = PO_COMP_ST_UPIN;
} else if (status == PO_COMP_ST_UP) {
if (comp->co_flags & PO_COMPF_DOWN2UP) {
status = PO_COMP_ST_UPIN;
/* does not work for delay_rebuild mode */
/* status = PO_COMP_ST_UPIN; */
} else {
if (comp->co_fseq <= 1)
status = PO_COMP_ST_NEW;
Expand Down Expand Up @@ -392,6 +393,7 @@ determine_valid_spares(struct pool_target *spare_tgt, struct daos_obj_md *md,
*/
if (f_shard->fs_status == PO_COMP_ST_DOWN ||
f_shard->fs_status == PO_COMP_ST_DRAIN ||
f_shard->fs_status == PO_COMP_ST_UP ||
pool_target_down(spare_tgt))
l_shard->po_rebuilding = 1;
} else {
Expand Down

0 comments on commit f186a50

Please sign in to comment.