mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-01-18 04:58:51 +02:00
Revert changes to backupFilePut() made in 1e77fc3d.
These changes were made obsolete by a3d7a23a.
This commit is contained in:
parent
7e35245dc3
commit
dcb4f09d83
@ -69,6 +69,7 @@
|
||||
<commit subject="Use infoBackupDataByLabel() to log backup size.">
|
||||
<github-pull-request id="1573"/>
|
||||
</commit>
|
||||
<commit subject="Revert changes to backupFilePut() made in 1e77fc3d."/>
|
||||
|
||||
<release-item-contributor-list>
|
||||
<release-item-ideator id="mahomed.hussein"/>
|
||||
|
@ -916,7 +916,7 @@ backupStart(BackupData *backupData)
|
||||
Stop the backup
|
||||
***********************************************************************************************************************************/
|
||||
// Helper to write a file from a string to the repository and update the manifest
|
||||
static uint64_t
|
||||
static void
|
||||
backupFilePut(BackupData *backupData, Manifest *manifest, const String *name, time_t timestamp, const String *content)
|
||||
{
|
||||
FUNCTION_LOG_BEGIN(logLevelDebug);
|
||||
@ -927,13 +927,9 @@ backupFilePut(BackupData *backupData, Manifest *manifest, const String *name, ti
|
||||
FUNCTION_LOG_PARAM(STRING, content);
|
||||
FUNCTION_LOG_END();
|
||||
|
||||
uint64_t fileSize = 0;
|
||||
|
||||
// Skip files with no content
|
||||
if (content != NULL)
|
||||
{
|
||||
fileSize = strSize(content);
|
||||
|
||||
MEM_CONTEXT_TEMP_BEGIN()
|
||||
{
|
||||
// Create file
|
||||
@ -996,7 +992,7 @@ backupFilePut(BackupData *backupData, Manifest *manifest, const String *name, ti
|
||||
MEM_CONTEXT_TEMP_END();
|
||||
}
|
||||
|
||||
FUNCTION_LOG_RETURN(UINT64, fileSize);
|
||||
FUNCTION_LOG_RETURN_VOID();
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user