1
0
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:
David Steele
2016-06-24 13:16:07 -04:00
parent bd25223fd6
commit 6ee485cc76
3 changed files with 8 additions and 1 deletions

View File

@@ -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>

View File

@@ -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;

View File

@@ -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();
}
}
}