Commit 94b012ab authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Check for leaking buffers only in paranoia mode.

parent 7ff0bb65
......@@ -112,7 +112,7 @@ func (me *BufferPool) AllocBuffer(size uint32) []byte {
// FUSE throttles to ~10 outstanding requests, no normally,
// should not have more than 20 buffers outstanding.
if len(me.outstandingBuffers) > 200 {
if paranoia && len(me.outstandingBuffers) > 50 {
panic("Leaking buffers")
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment