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:
parent
f6b9ab7326
commit
0f94476a1f
@ -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
|
||||
|
@ -38,7 +38,7 @@ use constant
|
||||
####################################################################################################################################
|
||||
use constant
|
||||
{
|
||||
DEFAULT_BLOCK_SIZE => 99999
|
||||
DEFAULT_BLOCK_SIZE => 4194304
|
||||
};
|
||||
|
||||
####################################################################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user