remove unnecesary slice operation when processing holder

This commit is contained in:
Jaden Weiss 2020-06-29 15:22:27 -04:00
parent 4d494f6699
commit 31014d11e5
No known key found for this signature in database
GPG key ID: 177F065773634B67

View file

@ -1660,7 +1660,6 @@ func (h *Holder) Process(ctx context.Context, op HolderOperator) (err error) {
var fragNums []uint64
h.mu.Lock()
indexNames = indexNames[:0]
for indexName := range h.indexes {
indexNames = append(indexNames, indexName)
}