Skip to content

Commit 20cf39d

Browse files
committed
DAOS-18487 rebuild: address comment
Features: rebuild Signed-off-by: Xuezhao Liu <[email protected]>
1 parent 337577e commit 20cf39d

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/pool/srv_pool.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7926,7 +7926,6 @@ ds_pool_reint_extend_allowed(struct pool_svc *svc)
79267926
struct ds_pool *pool = svc->ps_pool;
79277927
struct pool_target *targets = NULL;
79287928
uint32_t down_tgts_cnt = 0;
7929-
uint64_t sys_self_heal = 0;
79307929
int rc;
79317930
bool ret = true;
79327931

@@ -7952,27 +7951,6 @@ ds_pool_reint_extend_allowed(struct pool_svc *svc)
79527951
goto out;
79537952
}
79547953

7955-
rc = ds_mgmt_get_self_heal_policy(pool_svc_abort_gshp, svc, &sys_self_heal);
7956-
if (rc != 0) {
7957-
DL_ERROR(rc, DF_UUID ": failed to get self-heal policy", DP_UUID(svc->ps_uuid));
7958-
/*
7959-
* Another PS replica might be able reach the MS. If I'm
7960-
* not the PS leader of the specified term, this
7961-
* rdb_resign call does nothing.
7962-
*/
7963-
rdb_resign(svc->ps_rsvc.s_db, svc->ps_rsvc.s_term);
7964-
ret = false;
7965-
goto out;
7966-
}
7967-
7968-
if (!(sys_self_heal & DS_MGMT_SELF_HEAL_POOL_REBUILD)) {
7969-
D_DEBUG(DB_REBUILD,
7970-
DF_UUID " with DOWN tgt, pool_rebuild disabled in "
7971-
"sys_self_heal, REINT/EXTEND allowed",
7972-
DP_UUID(pool->sp_uuid));
7973-
goto out;
7974-
}
7975-
79767954
ret = false;
79777955
D_INFO(DF_UUID " with %d DOWN tgts, REINT/EXTEND disallowed until rebuild done.",
79787956
DP_UUID(pool->sp_uuid), down_tgts_cnt);

0 commit comments

Comments
 (0)