Protect against concurrent Scratch read and write
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 21 Mar 2016 19:42:27 +0000 (20:42 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 21 Mar 2016 19:42:27 +0000 (20:42 +0100)
commit02effd9dc46201df250564cdbbee1ca2291eb8b4
tree7f856a7d3bba34c42a4328c0a7db461494f02989
parentf52b040ee126ec0c48f1d273681a860fe7814314
Protect against concurrent Scratch read and write

Fixes #2005
hugolib/scratch.go
hugolib/scratch_test.go