You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-06-14 23:44:58 +02:00
Fix archive write lock being taken for the synchronous archive-get command.
Reported by Uspen.
This commit is contained in:
@ -19,6 +19,7 @@ use pgBackRest::Common::Exception;
|
||||
use pgBackRest::Common::Io::Buffered;
|
||||
use pgBackRest::Common::Log;
|
||||
use pgBackRest::Common::Wait;
|
||||
use pgBackRest::LibC qw(:config);
|
||||
use pgBackRest::Protocol::Base::Minion;
|
||||
use pgBackRest::Version;
|
||||
|
||||
@ -103,7 +104,9 @@ sub run
|
||||
my $oIoHandle = shift;
|
||||
|
||||
my $oMinion = new pgBackRest::Protocol::Base::Minion('test', new pgBackRest::Common::Io::Buffered($oIoHandle, 5, 4096));
|
||||
$oMinion->process();
|
||||
|
||||
# Use bogus lock path to ensure a lock is not taken for the archive-get command
|
||||
$oMinion->process($self->testPath(), cfgCommandName(CFGCMD_ARCHIVE_GET), "test");
|
||||
});
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user