policer: Fix svacer warning #1254

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/validate_nodes_len into master 2024-07-18 11:30:54 +00:00

Fix DIVISION_BY_ZERO.EX Variable len(nodes), whose possible value set allows a zero value at ec.go:102 by calling function 'builtin.len', is used as a denominator at ec.go:102.

Logically nodes must be non zero length. But add check so that the robots don't worry.

Fix `DIVISION_BY_ZERO.EX Variable len(nodes), whose possible value set allows a zero value at ec.go:102 by calling function 'builtin.len', is used as a denominator at ec.go:102.` Logically `nodes` must be non zero length. But add check so that the robots don't worry.
dstepanov-yadro force-pushed fix/validate_nodes_len from 3a705a9c16 to 4cba107063 2024-07-17 11:37:38 +00:00 Compare
dstepanov-yadro requested review from storage-core-committers 2024-07-17 11:42:23 +00:00
dstepanov-yadro requested review from storage-core-developers 2024-07-17 11:43:52 +00:00
fyrchik approved these changes 2024-07-17 12:18:23 +00:00
aarifullin approved these changes 2024-07-17 14:36:31 +00:00
dstepanov-yadro force-pushed fix/validate_nodes_len from 4cba107063 to 03e4257460 2024-07-17 15:04:51 +00:00 Compare
fyrchik merged commit 5e5ee545b6 into master 2024-07-18 11:30:51 +00:00
fyrchik referenced this pull request from a commit 2024-07-18 11:30:57 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1254
No description provided.