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