1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-08 03:22:25 +03:00

Disable gzip filter when --compress-level-network=0.

The filter was used with compress level set to 0 which added overhead without any benefit.
This commit is contained in:
David Steele
2017-11-21 09:31:15 -05:00
parent 1da63aff07
commit 062e714307
6 changed files with 33 additions and 12 deletions

View File

@@ -574,7 +574,7 @@ sub run
$oHostDbMaster->restore(
$strFullBackup, \%oManifest, undef, $bDelta, $bForce, undef, undef, undef, undef, undef, undef,
'fix broken symlink', undef, " --link-all ${strLogReduced} ${strLogReduced}");
'fix broken symlink', undef, " --link-all ${strLogReduced}" . ($bRemote ? ' --compress-level-network=0' : ''));
# Additional restore tests that don't need to be performed for every permutation
if (!$bRemote)