You've already forked pgbackrest
							
							
				mirror of
				https://github.com/pgbackrest/pgbackrest.git
				synced 2025-10-30 23:37:45 +02:00 
			
		
		
		
	Add lz4 compression support.
LZ4 compresses data faster than gzip but at a lower ratio. This can be a good tradeoff in certain scenarios. Note that setting compress-type=lz4 will make new backups and archive incompatible (unrestorable) with prior versions of pgBackRest.
This commit is contained in:
		| @@ -434,7 +434,8 @@ sub run | ||||
|                 buildPutDiffers($self->{oStorageTest}, "$self->{strGCovPath}/test.c", $strTestC); | ||||
|  | ||||
|                 # Create build.auto.h | ||||
|                 my $strBuildAutoH = ""; | ||||
|                 my $strBuildAutoH = | ||||
|                     (vmWithLz4($self->{oTest}->{&TEST_VM}) ? '#define HAVE_LIBLZ4' : '') . "\n"; | ||||
|  | ||||
|                 buildPutDiffers($self->{oStorageTest}, "$self->{strGCovPath}/" . BUILD_AUTO_H, $strBuildAutoH); | ||||
|  | ||||
| @@ -502,6 +503,7 @@ sub run | ||||
|                     "HARNESSFLAGS=${strHarnessFlags}\n" . | ||||
|                     "TESTFLAGS=${strTestFlags}\n" . | ||||
|                     "LDFLAGS=-lcrypto -lssl -lxml2 -lz" . | ||||
|                         (vmWithLz4($self->{oTest}->{&TEST_VM}) ? ' -llz4' : '') . | ||||
|                         (vmCoverageC($self->{oTest}->{&TEST_VM}) && $self->{bCoverageUnit} ? " -lgcov" : '') . | ||||
|                         (vmWithBackTrace($self->{oTest}->{&TEST_VM}) && $self->{bBackTrace} ? ' -lbacktrace' : '') . | ||||
|                     "\n" . | ||||
|   | ||||
		Reference in New Issue
	
	Block a user