Skip to content

Commit

Permalink
NonPersistentDiskQueueSegment: default read buffer size corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
ikopylov committed Apr 28, 2017
1 parent 850e170 commit 10f21e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public NonPersistentDiskQueueSegment(long segmentNumber, string fileName, IDiskQ
}


_maxReadBufferSize = readBufferSize >= 0 ? readBufferSize : DefaultReadBufferSize;
_maxReadBufferSize = readBufferSize >= 0 ? readBufferSize : Math.Max(_writeBufferSize / 2, DefaultReadBufferSize);
if (_maxReadBufferSize > 0)
_readBuffer = new ConcurrentQueue<T>();

Expand Down

0 comments on commit 10f21e7

Please sign in to comment.