Skip to content

Commit

Permalink
pkg/allocator: refactor mentions of 'slave' in error messages
Browse files Browse the repository at this point in the history
[ upstream commit 3b2e1ad ]

Renamed 'slave' to 'secondary' in the error messages that are presented
to users.

Signed-off-by: André Martins <andre@cilium.io>
Signed-off-by: André Martins <andre@cilium.io>
  • Loading branch information
aanm committed Nov 8, 2023
1 parent c1e53a4 commit 3233363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/allocator/allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ func (a *Allocator) lockedAllocate(ctx context.Context, key AllocatorKey) (idpoo

if err = a.backend.AcquireReference(ctx, value, key, lock); err != nil {
a.localKeys.release(k)
return 0, false, false, fmt.Errorf("unable to create slave key '%s': %s", k, err)
return 0, false, false, fmt.Errorf("unable to create secondary key '%s': %s", k, err)
}

// mark the key as verified in the local cache
Expand Down Expand Up @@ -610,7 +610,7 @@ func (a *Allocator) lockedAllocate(ctx context.Context, key AllocatorKey) (idpoo
// exposed and may be in use by other nodes. The garbage
// collector will release it again.
releaseKeyAndID()
return 0, false, false, fmt.Errorf("slave key creation failed '%s': %s", k, err)
return 0, false, false, fmt.Errorf("secondary key creation failed '%s': %s", k, err)
}

// mark the key as verified in the local cache
Expand Down

0 comments on commit 3233363

Please sign in to comment.