prometheus/prometheus — pull request #213 by bernerdschaefer (2013-05-03 10:18:08+00:00)
Title: Fix goroutine leak in leveldb.AppendSamples

The error channels in AppendSamples need to be buffered, since in the presence of errors their values may not be consumed.

This was surfaced while digging through a goroutine dump for an unrelated issue, when I discovered 400 goroutines blocked on sending to watermarkErrChan.