docker/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 go fmt 2013-11-07 12:27:33 -08:00
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 Handle small screens 2013-12-03 14:21:33 -08:00
progressreader.go fix progressbar in docker push 2013-12-20 16:55:41 -08:00
random.go go fmt 2013-11-07 12:27:33 -08:00
signal.go stop proxy at one point 2013-10-29 14:29:01 -07:00
signal_darwin.go Add -nostdin and -proxy to docker attach, allow arbirary signal to be sent via docker kill api endpoint 2013-10-18 16:16:29 -07:00
signal_linux.go Add -nostdin and -proxy to docker attach, allow arbirary signal to be sent via docker kill api endpoint 2013-10-18 16:16:29 -07:00
stdcopy.go Add better comments to utils/stdcopy.go. 2013-10-16 10:58:53 -07:00
streamformatter.go fix jsonmessage in build 2013-12-06 14:09:27 -08:00
tarsum.go Disable compression for build. More space usage but much faster upload 2014-01-08 14:21:13 -08:00
uname_darwin.go utils: fix compilation on Darwin 2013-05-19 00:02:42 -03:00
uname_linux.go fix compilation on linux 2013-05-20 20:43:09 +03:00
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