You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-09-16 09:06:18 +02:00
Added more keep-alives.
Keep-alives were also missing from multi-threaded backup/restore and single-threaded restore. Found by Chris Barber.
This commit is contained in:
@@ -100,9 +100,10 @@
|
||||
<release-item>
|
||||
<release-item-contributor-list>
|
||||
<release-item-ideator id="parkinson.janice"/>
|
||||
<release-item-ideator id="barber.chris"/>
|
||||
</release-item-contributor-list>
|
||||
|
||||
<p>Fixed an issue where <id>keep-alives</id> could be starved out by lots of small files during multi-threaded operation and were completely absent during single-threaded operation when resuming from a previous incomplete backup.</p>
|
||||
<p>Fixed an issue where <id>keep-alives</id> could be starved out by lots of small files during multi-threaded operation and were completely absent during single/multi-threaded operation when resuming from a previous incomplete backup and checksumming during a delta restore.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
|
@@ -136,6 +136,9 @@ sub threadGroupThread
|
||||
}
|
||||
}
|
||||
|
||||
# Keep the protocol layer from timing out while checksumming
|
||||
protocolGet()->keepAlive();
|
||||
|
||||
# Even numbered threads move up when they have finished a queue, odd numbered threads move down
|
||||
$iQueueIdx += $iDirection;
|
||||
|
||||
|
@@ -1310,6 +1310,9 @@ sub process
|
||||
$lSizeCurrent = restoreFile($oRestoreHash{$strQueueKey}{$strFileKey}, $lCopyTimeBegin, optionGet(OPTION_DELTA),
|
||||
optionGet(OPTION_FORCE), $self->{strBackupSet}, $bSourceCompression, $strCurrentUser,
|
||||
$strCurrentGroup, $self->{oFile}, $lSizeTotal, $lSizeCurrent);
|
||||
|
||||
# Keep the protocol layer from timing out while checksumming
|
||||
protocolGet()->keepAlive();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user