forked from TrueCloudLab/frostfs-node
[#1605] policer: Simplify processRepNodes() checks
Current flow is hard to reason about, #1601 is a notorious example of accidental complexity. 1. Remove multiple nested ifs, use depth=1. 2. Process each status exactly once, hopefully preventing bugs like #1601. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
c98357606b
commit
0bcbeb26b2
2 changed files with 52 additions and 55 deletions
|
@ -10,6 +10,7 @@ const (
|
|||
nodeHoldsObject
|
||||
nodeStatusUnknown
|
||||
nodeIsUnderMaintenance
|
||||
nodeIsLocal
|
||||
)
|
||||
|
||||
func (st nodeProcessStatus) Processed() bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue