Merge pull request #1686 from tgruben/quick-fix

mutex checker dedup backport
This commit is contained in:
tgruben 2021-09-08 10:37:52 -05:00 committed by GitHub
commit c46c5e7d69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
api.go
View file

@ -2208,7 +2208,7 @@ func mergeIDLists(dst []uint64, src []uint64) []uint64 {
}
prev = dst[i]
}
return dst
return dst[:n]
}
// mergeKeyLists merges a list of string IDs into another list, removing
@ -2228,7 +2228,7 @@ func mergeKeyLists(dst []string, src []string) []string {
}
prev = dst[i]
}
return dst
return dst[:n]
}
// MutexCheckNode checks for collisions in a given mutex field. The response is