1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/utils
James Allen 37fcbfa1f4 Add RWMutex lock into TruncIndex to fix race condition when inserting values
The idx.index array is overwritten when a new value is inserted to the index.
When two containers are created concurrently, their ids are inserted to the
index and one can overwrite the other leaving one of ids missing from the
index. Adding a RWMutex lock around read/write operations fixes this.

Docker-DCO-1.1-Signed-off-by: James Allen <jamesallen0108@gmail.com> (github: jpallen)
2014-01-15 17:30:00 +00:00
..
testdata/fs Improve FollowLink to handle recursive link and be more strick 2013-12-11 17:19:02 -08:00
daemon.go
fs.go Improve FollowLink to handle recursive link and be more strick 2013-12-11 17:19:02 -08:00
fs_test.go Improve FollowLink to handle recursive link and be more strick 2013-12-11 17:19:02 -08:00
http.go Add arch/os info to user agent (Registry) 2013-12-20 08:19:25 -08:00
jsonmessage.go Merge pull request #3287 from vieux/fix_progressbar_display_push 2014-01-02 13:38:11 -08:00
jsonmessage_test.go
progressreader.go fix progressbar in docker push 2013-12-20 16:55:41 -08:00
random.go
signal.go
signal_darwin.go
signal_linux.go
stdcopy.go
streamformatter.go
tarsum.go Disable compression for build. More space usage but much faster upload 2014-01-08 14:21:13 -08:00
uname_darwin.go
uname_linux.go
utils.go Add RWMutex lock into TruncIndex to fix race condition when inserting values 2014-01-15 17:30:00 +00:00
utils_test.go Run 'gofmt -s -w' 2014-01-06 22:14:35 -07:00