Skip to content

Commit 9df670c

Browse files
authored
DAOS-18420 pool: eliminate unnecessary error messages (#17343) (#17351)
ds_pool_child_lookup() is intented to get a pool_child expected to be in the STARTING or STARTED state. If the caller requires a pool_child without assuming a specific state, ds_pool_child_find() should be used instead. Signed-off-by: Niu Yawei <yawei.niu@hpe.com>
1 parent 25cf081 commit 9df670c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pool/srv_util.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* (C) Copyright 2016-2024 Intel Corporation.
3+
* (C) Copyright 2026 Hewlett Packard Enterprise Development LP
34
*
45
* SPDX-License-Identifier: BSD-2-Clause-Patent
56
*/
@@ -1447,7 +1448,7 @@ check_pool_targets(uuid_t pool_id, int *tgt_ids, int tgt_cnt, bool reint,
14471448
int i, nr, rc = 0;
14481449

14491450
/* Get pool map to check the target status */
1450-
pool_child = ds_pool_child_lookup(pool_id);
1451+
pool_child = ds_pool_child_find(pool_id);
14511452
if (pool_child == NULL) {
14521453
D_ERROR(DF_UUID": Pool child not found\n", DP_UUID(pool_id));
14531454
/*

0 commit comments

Comments
 (0)