You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-05-22 10:15:16 +02:00
Move modules in Protocol directory in subdirectories.
This commit is contained in:
@@ -19,7 +19,7 @@ use Symbol 'gensym';
|
||||
|
||||
use pgBackRest::Common::Log;
|
||||
use pgBackRest::Common::Wait;
|
||||
use pgBackRest::Protocol::IO::ProcessIO;
|
||||
use pgBackRest::Protocol::Common::Io::Process;
|
||||
|
||||
####################################################################################################################################
|
||||
# new
|
||||
@@ -99,7 +99,7 @@ sub begin
|
||||
$self->{pId} = open3(undef, $self->{hOut}, $self->{hError}, $self->{strCommand});
|
||||
|
||||
# Create select objects
|
||||
$self->{oIO} = new pgBackRest::Protocol::IO::ProcessIO($self->{hOut}, undef, $self->{hError}, undef, undef, 30, 65536);
|
||||
$self->{oIO} = new pgBackRest::Protocol::Common::Io::Process($self->{hOut}, undef, $self->{hError}, undef, undef, 30, 65536);
|
||||
|
||||
if (!defined($self->{hError}))
|
||||
{
|
||||
|
||||
@@ -113,7 +113,7 @@ sub new
|
||||
$self->{oFile} = new pgBackRest::File(
|
||||
$self->stanza(),
|
||||
$self->repoPath(),
|
||||
new pgBackRest::Protocol::Common
|
||||
new pgBackRest::Protocol::Common::Common
|
||||
(
|
||||
OPTION_DEFAULT_BUFFER_SIZE, # Buffer size
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL, # Compress level
|
||||
|
||||
@@ -121,7 +121,7 @@ sub setup
|
||||
(
|
||||
$oHostDbMaster->stanza(),
|
||||
$oHostDbMaster->repoPath(),
|
||||
new pgBackRest::Protocol::Common
|
||||
new pgBackRest::Protocol::Common::Common
|
||||
(
|
||||
OPTION_DEFAULT_BUFFER_SIZE, # Buffer size
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL, # Compress level
|
||||
|
||||
@@ -26,8 +26,8 @@ use pgBackRest::Config::Config;
|
||||
use pgBackRest::DbVersion;
|
||||
use pgBackRest::File;
|
||||
use pgBackRest::FileCommon;
|
||||
use pgBackRest::Protocol::Common;
|
||||
use pgBackRest::Protocol::Protocol;
|
||||
use pgBackRest::Protocol::Common::Common;
|
||||
use pgBackRest::Protocol::Helper;
|
||||
|
||||
use pgBackRestTest::Env::HostEnvTest;
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
@@ -55,7 +55,7 @@ sub initModule
|
||||
(
|
||||
$self->stanza(),
|
||||
$self->{strRepoPath},
|
||||
new pgBackRest::Protocol::Common
|
||||
new pgBackRest::Protocol::Common::Common
|
||||
(
|
||||
OPTION_DEFAULT_BUFFER_SIZE, # Buffer size
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL, # Compress level
|
||||
|
||||
@@ -99,7 +99,7 @@ sub run
|
||||
my $oFile = new pgBackRest::File(
|
||||
$self->stanza(),
|
||||
$self->testPath(),
|
||||
new pgBackRest::Protocol::Common(
|
||||
new pgBackRest::Protocol::Common::Common(
|
||||
OPTION_DEFAULT_BUFFER_SIZE, # Buffer size
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL, # Compress level
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL_NETWORK, # Compress network level
|
||||
|
||||
@@ -24,8 +24,8 @@ use pgBackRest::File;
|
||||
use pgBackRest::FileCommon;
|
||||
use pgBackRest::InfoCommon;
|
||||
use pgBackRest::Manifest;
|
||||
use pgBackRest::Protocol::Common;
|
||||
use pgBackRest::Protocol::Protocol;
|
||||
use pgBackRest::Protocol::Common::Common;
|
||||
use pgBackRest::Protocol::Helper;
|
||||
|
||||
use pgBackRestTest::Env::HostEnvTest;
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
|
||||
@@ -21,8 +21,8 @@ use pgBackRest::Common::Wait;
|
||||
use pgBackRest::Config::Config;
|
||||
use pgBackRest::File;
|
||||
use pgBackRest::FileCommon;
|
||||
use pgBackRest::Protocol::Common;
|
||||
use pgBackRest::Protocol::Protocol;
|
||||
use pgBackRest::Protocol::Common::Common;
|
||||
use pgBackRest::Protocol::Helper;
|
||||
use pgBackRest::Manifest;
|
||||
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
@@ -124,7 +124,7 @@ sub run
|
||||
(
|
||||
$self->stanza(),
|
||||
$strRepoPath,
|
||||
new pgBackRest::Protocol::Common
|
||||
new pgBackRest::Protocol::Common::Common
|
||||
(
|
||||
OPTION_DEFAULT_BUFFER_SIZE, # Buffer size
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL, # Compress level
|
||||
|
||||
@@ -15,8 +15,8 @@ use English '-no_match_vars';
|
||||
use pgBackRest::Common::Log;
|
||||
use pgBackRest::Config::Config;
|
||||
use pgBackRest::FileCommon;
|
||||
use pgBackRest::Protocol::Common;
|
||||
use pgBackRest::Protocol::RemoteMaster;
|
||||
use pgBackRest::Protocol::Common::Common;
|
||||
use pgBackRest::Protocol::Remote::Master;
|
||||
|
||||
use pgBackRestTest::Env::Host::HostBackupTest;
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
@@ -37,14 +37,14 @@ sub initModule
|
||||
or confess "Unable to create repo directory: ${strRepoPath}";
|
||||
|
||||
# Create local
|
||||
$self->{oLocal} = new pgBackRest::Protocol::Common(
|
||||
$self->{oLocal} = new pgBackRest::Protocol::Common::Common(
|
||||
262144,
|
||||
1,
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL_NETWORK,
|
||||
HOST_PROTOCOL_TIMEOUT);
|
||||
|
||||
# Create remote
|
||||
$self->{oRemote} = new pgBackRest::Protocol::RemoteMaster(
|
||||
$self->{oRemote} = new pgBackRest::Protocol::Remote::Master(
|
||||
BACKUP,
|
||||
OPTION_DEFAULT_CMD_SSH,
|
||||
$self->backrestExeOriginal() . ' --stanza=' . $self->stanza() .
|
||||
|
||||
@@ -25,8 +25,8 @@ use pgBackRest::File;
|
||||
use pgBackRest::FileCommon;
|
||||
use pgBackRest::Info;
|
||||
use pgBackRest::Manifest;
|
||||
use pgBackRest::Protocol::Common;
|
||||
use pgBackRest::Protocol::Protocol;
|
||||
use pgBackRest::Protocol::Common::Common;
|
||||
use pgBackRest::Protocol::Helper;
|
||||
|
||||
use pgBackRestTest::Env::HostEnvTest;
|
||||
use pgBackRestTest::Common::ExecuteTest;
|
||||
@@ -52,7 +52,7 @@ sub initModule
|
||||
(
|
||||
$self->stanza(),
|
||||
$self->{strRepoPath},
|
||||
new pgBackRest::Protocol::Common
|
||||
new pgBackRest::Protocol::Common::Common
|
||||
(
|
||||
OPTION_DEFAULT_BUFFER_SIZE, # Buffer size
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL, # Compress level
|
||||
|
||||
@@ -26,8 +26,8 @@ use pgBackRest::DbVersion;
|
||||
use pgBackRest::File;
|
||||
use pgBackRest::FileCommon;
|
||||
use pgBackRest::Manifest;
|
||||
use pgBackRest::Protocol::Common;
|
||||
use pgBackRest::Protocol::Protocol;
|
||||
use pgBackRest::Protocol::Common::Common;
|
||||
use pgBackRest::Protocol::Helper;
|
||||
use pgBackRest::Stanza;
|
||||
|
||||
use pgBackRestTest::Env::HostEnvTest;
|
||||
|
||||
Reference in New Issue
Block a user