1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00

Changed buffer sizes.

This commit is contained in:
David Steele 2015-02-28 12:10:50 -05:00
parent f6b9ab7326
commit 0f94476a1f
2 changed files with 3 additions and 3 deletions

View File

@ -814,7 +814,7 @@ sub hash
do
{
# Read a block from the file
$iBlockSize = sysread($hFile, $tCompressedBuffer, 1000000,
$iBlockSize = sysread($hFile, $tCompressedBuffer, 4194304,
defined($tCompressedBuffer) ? length($tCompressedBuffer) : 0);
if (!defined($iBlockSize))
@ -826,7 +826,7 @@ sub hash
if ($bFirst)
{
# Initialize Gunzip
$oGzip = new IO::Uncompress::Gunzip(\$tCompressedBuffer, Transparent => 0, BlockSize => 1000000)
$oGzip = new IO::Uncompress::Gunzip(\$tCompressedBuffer, Transparent => 0, BlockSize => 4194304)
or confess "IO::Uncompress::Gunzip failed: $GunzipError";
# Clear first block flag

View File

@ -38,7 +38,7 @@ use constant
####################################################################################################################################
use constant
{
DEFAULT_BLOCK_SIZE => 99999
DEFAULT_BLOCK_SIZE => 4194304
};
####################################################################################################################################