You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-09-16 09:06:18 +02:00
More efficient generation of diff/incr backup label.
This commit is contained in:
@@ -47,11 +47,8 @@ backupLabelFormat(BackupType type, const String *backupLabelPrior, time_t timest
|
||||
// Else diff or incr label
|
||||
else
|
||||
{
|
||||
// Get the full backup portion of the prior backup label
|
||||
result = strSubN(backupLabelPrior, 0, 16);
|
||||
|
||||
// Append the diff/incr timestamp
|
||||
strCatFmt(result, "_%s%s", buffer, type == backupTypeDiff ? "D" : "I");
|
||||
// Get the full backup portion of the prior backup label and append the diff/incr timestamp
|
||||
result = strNewFmt("%.16s_%s%s", strZ(backupLabelPrior), buffer, type == backupTypeDiff ? "D" : "I");
|
||||
}
|
||||
|
||||
FUNCTION_LOG_RETURN(STRING, result);
|
||||
|
Reference in New Issue
Block a user