From a6e219bc8bf1f6d93a24ba120fa9614d7b667ce3 Mon Sep 17 00:00:00 2001 From: David Steele Date: Fri, 15 Mar 2019 10:25:24 +0400 Subject: [PATCH] Improve comment, remove duplicated header and extraneous braces. --- src/command/archive/get/file.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/command/archive/get/file.c b/src/command/archive/get/file.c index 6306175d2..757424b36 100644 --- a/src/command/archive/get/file.c +++ b/src/command/archive/get/file.c @@ -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 @@ -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);