fix: re-use endpoint strings to avoid allocation during audit (#19116)

This commit is contained in:
Harshavardhana
2024-02-23 16:19:13 -08:00
committed by GitHub
parent a3ac62596c
commit f965434022
2 changed files with 17 additions and 17 deletions

View File

@@ -58,10 +58,14 @@ type erasureObjects struct {
// getLockers returns list of remote and local lockers.
getLockers func() ([]dsync.NetLocker, string)
// getEndpoints returns list of endpoint strings belonging this set.
// getEndpoints returns list of endpoint belonging this set.
// some may be local and some remote.
getEndpoints func() []Endpoint
// getEndpoints returns list of endpoint strings belonging this set.
// some may be local and some remote.
getEndpointStrings func() []string
// Locker mutex map.
nsMutex *nsLockMap
}