Skip to content

Commit

Permalink
Improve comment, remove duplicated header and extraneous braces.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsteele committed Mar 15, 2019
1 parent 5554377 commit a6e219b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/command/archive/get/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ Archive Get File
#include "info/infoArchive.h"
#include "postgres/interface.h"
#include "storage/helper.h"
#include "storage/helper.h"

/***********************************************************************************************************************************
Check if a WAL file exists in the repository
***********************************************************************************************************************************/
#define FUNCTION_LOG_ARCHIVE_GET_CHECK_RESULT_TYPE \
#define FUNCTION_LOG_ARCHIVE_GET_CHECK_RESULT_TYPE \
ArchiveGetCheckResult
#define FUNCTION_LOG_ARCHIVE_GET_CHECK_RESULT_FORMAT(value, buffer, bufferSize) \
#define FUNCTION_LOG_ARCHIVE_GET_CHECK_RESULT_FORMAT(value, buffer, bufferSize) \
objToLog(&value, "ArchiveGetCheckResult", buffer, bufferSize)

typedef struct ArchiveGetCheckResult
Expand Down Expand Up @@ -157,11 +156,9 @@ archiveGetFile(
cipherBlockNew(cipherModeDecrypt, cipherType, bufNewStr(archiveGetCheckResult.cipherPass), NULL)));
}

// If file is gzipped then add the decompression filter
// If file is compressed then add the decompression filter
if (strEndsWithZ(archiveGetCheckResult.archiveFileActual, "." GZIP_EXT))
{
ioFilterGroupAdd(filterGroup, gzipDecompressFilter(gzipDecompressNew(false)));
}

ioWriteFilterGroupSet(storageFileWriteIo(destination), filterGroup);

Expand Down

0 comments on commit a6e219b

Please sign in to comment.