mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
7493342926
Marshalling log messages by json-file and local drivers involved serializing the message into a shared buffer. This caused a regression resulting in log corruption with recent changes where Log may be called from multiple goroutines at the same time. Solution is to use a sync.Pool to manage the buffers used for the serialization. Also removed the MarshalFunc, which the driver had to expose to the LogFile so that it can marshal the message. This is now moved entirely to the driver. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com> |
||
---|---|---|
.. | ||
jsonlog | ||
jsonfilelog.go | ||
jsonfilelog_test.go | ||
read.go | ||
read_test.go |