mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-01-18 04:58:51 +02:00
Represent .gz extension with a constant.
This commit is contained in:
parent
f3ccf3b897
commit
2553c7a998
@ -221,10 +221,6 @@
|
||||
<p>Moved <code>File->manifest()</code> into the <code>FileCommon.pm</code> module.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p>C Library builds only run when C library has actually changed.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p>Moved the <code>Archive</code> modules to the <path>Archive</path> directory and split the <cmd>archive-get</cmd> and <cmd>archive-push</cmd> commands into separate modules.</p>
|
||||
</release-item>
|
||||
@ -252,6 +248,10 @@
|
||||
<release-item>
|
||||
<p>Added <code>Exception::exceptionCode()</code> and <code>Exception::exceptionMessage()</code> to simplify error handling logic.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p>Represent <file>.gz</file> extension with a constant.</p>
|
||||
</release-item>
|
||||
</release-refactor-list>
|
||||
</release-core-list>
|
||||
|
||||
@ -283,6 +283,10 @@
|
||||
<p>Added unit tests for low-level functions in the <code>File</code> and <code>BackupCommon</code> modules.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p>C Library builds only run when C library has actually changed.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p>Added more flexibility in initializing and cleaning up after modules and tests.</p>
|
||||
</release-item>
|
||||
|
@ -88,7 +88,7 @@ sub new
|
||||
);
|
||||
|
||||
# Default compression extension to gz
|
||||
$self->{strCompressExtension} = 'gz';
|
||||
$self->{strCompressExtension} = COMPRESS_EXT;
|
||||
|
||||
# Return from function and log return values if any
|
||||
return logDebugReturn
|
||||
|
@ -26,6 +26,12 @@ use pgBackRest::Common::Log;
|
||||
my $strPathModeDefault = '0750';
|
||||
my $strFileModeDefault = '0640';
|
||||
|
||||
####################################################################################################################################
|
||||
# Compression extension
|
||||
####################################################################################################################################
|
||||
use constant COMPRESS_EXT => 'gz';
|
||||
push @EXPORT, qw(COMPRESS_EXT);
|
||||
|
||||
####################################################################################################################################
|
||||
# fileExists
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user