1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-05-22 10:15:16 +02:00

Fixed locking bug and refactoring.

* Fixed an issue where read-only operations that used local worker processes (i.e. restore) were creating write locks that could interfere with parallel archive-push. (Reported by Jens Wilke.)
* Simplify locking scheme. Now, only the master process will hold write locks (archive-push, backup) and not all the local and remote worker processes as before.
This commit is contained in:
David Steele
2017-04-07 10:31:49 -04:00
parent edfb0962b6
commit eb4918d018
31 changed files with 458 additions and 439 deletions
@@ -763,7 +763,7 @@ sub run
$self->testException(
sub {$oPush->process("$self->{strWalPath}/${strSegment}")}, ERROR_HOST_CONNECT,
"remote process terminated on local-1 host: remote process terminated on bogus host.*");
'remote process terminated on ' . BOGUS . ' host.*');
exit if ($iProcessId != $PID);
# Disable async archiving