mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-02-11 13:53:03 +02:00
2a06df93 removed the error file so an old error would not be reported before the async process had a chance to try again. However, if the async process was already running this might lead to a timeout error before reporting the correct error. Instead, remove the error files once we know that the async process will start, i.e. after the archive lock has been acquired. This effectively reverts 2a06df93.