adm/morph: Fix set-config parameter validation #1167
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1167
Loading…
Reference in a new issue
No description provided.
Delete branch "achuprov/frostfs-node:bugfix/set-config-error"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Alexander Chuprov a.chuprov@yadro.com
WIP: [#1166] adm/morph: Fix set-config parameter validationto adm/morph: Fix set-config parameter validation8f91dc29fd
to84348a3636
@ -137,6 +137,8 @@ func SetConfigCmd(cmd *cobra.Command, args []string) error {
return wCtx.AwaitTx()
}
const maxECSum = 256
Looks like a separate commit.
fixed
@ -151,3 +152,1 @@
if !ok || value < 0 {
return fmt.Errorf("%s must be >= 0, got %v", k, v)
}
intValue, intOk := v.(int64)
Why don't we cast it inside
case
branches? The results are only used there.fixed
84348a3636
toa9b93676e0