Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
Required-githooks: true
Signed-off-by: Wang Shilong <[email protected]>
  • Loading branch information
Wang Shilong committed Dec 5, 2024
1 parent 66ebd60 commit b3dc6f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/control/cmd/daos/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,9 @@ func queryPool(poolHdl C.daos_handle_t, queryMask daos.PoolQueryMask) (*daos.Poo
daos.PoolQueryOptionDisabledEngines,
daos.PoolQueryOptionSuspectEngines,
}
var firstOption string
var firstOption string = ""
for _, opt := range queryOptions {
if queryMask.HasOption(opt) && opt != firstOption {
if queryMask.HasOption(opt) && firstOption != "" {
firstOption = opt
continue
}
Expand All @@ -392,6 +392,7 @@ func queryPool(poolHdl C.daos_handle_t, queryMask daos.PoolQueryMask) (*daos.Poo
}
}
}
poolInfo.QueryMask = originalMask

return poolInfo, nil
}
Expand Down

0 comments on commit b3dc6f0

Please sign in to comment.