1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/truncindex
William Martin 57dada5338 Fix non thread-safe Iteration around go-patricia
* Unlike other methods in truncindex, Iterate was not locking before
using the Trie, making it potentially race e.g. Delete could result in
setting a child to nil, while Iterate dereferenced that node
while walking the Trie.

Signed-off-by: Petar Petrov <pppepito86@gmail.com>
2017-01-09 17:06:50 +00:00
..
truncindex.go Fix non thread-safe Iteration around go-patricia 2017-01-09 17:06:50 +00:00
truncindex_test.go Fix non thread-safe Iteration around go-patricia 2017-01-09 17:06:50 +00:00