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 30, 2023
1 parent 7a934e4 commit ee9ce2c
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 ee9ce2c

Please sign in to comment.