Commit 284148c0 authored by nkindlon's avatar nkindlon
Browse files

Corrected comment and constant for MAIN_BUF_READ_SIZE.

parent fba95089
......@@ -54,7 +54,7 @@ bool BufferedStreamMgr::init()
if (_inputStreamMgr->isGzipped()) {
_useBufSize = GZIP_LINE_BUF_SIZE;
} else {
_useBufSize = 67108863; //64Mb -1
_useBufSize = MAIN_BUF_READ_SIZE;
}
size_t trueBufSize = max(_useBufSize, (int)_currScanBuffer.size());
......
......@@ -43,7 +43,7 @@ private:
bool _streamFinished;
QuickString _currScanBuffer;
//The minus ones in these constants are for leaving room for a null terminator after reading into buffers.
// static const int MAIN_BUF_READ_SIZE = 2047; //64 Mb minus 1
static const int MAIN_BUF_READ_SIZE = 2047; // 2 Kb minus 1
static const int GZIP_LINE_BUF_SIZE = 8191; // 8K
bool readFileChunk();
bool getTypeData();
......
Supports Markdown
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