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
Renamed 'slave' to 'secondary' in the error messages that are presented
to users.

Signed-off-by: André Martins <andre@cilium.io>
  • Loading branch information
aanm committed Oct 26, 2023
1 parent 51be815 commit fb3a9f8
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 @@ -541,7 +541,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 @@ -606,7 +606,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 fb3a9f8

Please sign in to comment.