1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00

Move compress module to common/compress.

It makes sense for the compression code to be in common since it is not pgBackRest-specific.
This commit is contained in:
David Steele 2019-03-10 13:11:20 +02:00
parent 2f63babe9d
commit 95597be81e
13 changed files with 45 additions and 43 deletions

View File

@ -180,6 +180,10 @@
<release-item>
<p>Increase per-call stack trace size to <id>4096</id>.</p>
</release-item>
<release-item>
<p>Move <code>compress</code> module to <code>common/compress</code>.</p>
</release-item>
</release-development-list>
</release-core-list>

View File

@ -43,6 +43,9 @@ my @stryCFile =
'LibC.c',
'command/command.c',
'common/compress/gzip/common.c',
'common/compress/gzip/compress.c',
'common/compress/gzip/decompress.c',
'common/debug.c',
'common/encode.c',
'common/encode/base64.c',
@ -75,9 +78,6 @@ my @stryCFile =
'common/type/variantList.c',
'common/type/xml.c',
'common/wait.c',
'compress/gzip.c',
'compress/gzipCompress.c',
'compress/gzipDecompress.c',
'config/config.c',
'config/define.c',
'config/load.c',

View File

@ -70,6 +70,9 @@ SRCS = \
command/control/control.c \
command/local/local.c \
command/remote/remote.c \
common/compress/gzip/common.c \
common/compress/gzip/compress.c \
common/compress/gzip/decompress.c \
common/debug.c \
common/encode.c \
common/encode/base64.c \
@ -111,9 +114,6 @@ SRCS = \
common/type/variantList.c \
common/type/xml.c \
common/wait.c \
compress/gzip.c \
compress/gzipCompress.c \
compress/gzipDecompress.c \
config/config.c \
config/define.c \
config/exec.c \
@ -201,7 +201,7 @@ clean:
command/archive/common.o: command/archive/common.c command/archive/common.h common/assert.h common/debug.h common/error.auto.h common/error.h common/io/filter/filter.h common/io/filter/group.h common/io/read.h common/io/write.h common/log.h common/logLevel.h common/memContext.h common/regExp.h common/stackTrace.h common/time.h common/type/buffer.h common/type/convert.h common/type/keyValue.h common/type/string.h common/type/stringList.h common/type/variant.h common/type/variantList.h common/wait.h postgres/version.h storage/fileRead.h storage/fileWrite.h storage/helper.h storage/info.h storage/storage.h
$(CC) $(CFLAGS) -c command/archive/common.c -o command/archive/common.o
command/archive/get/file.o: command/archive/get/file.c command/archive/common.h command/archive/get/file.h command/control/control.h common/assert.h common/debug.h common/error.auto.h common/error.h common/ini.h common/io/filter/filter.h common/io/filter/group.h common/io/read.h common/io/write.h common/lock.h common/log.h common/logLevel.h common/memContext.h common/stackTrace.h common/time.h common/type/buffer.h common/type/convert.h common/type/keyValue.h common/type/string.h common/type/stringList.h common/type/variant.h common/type/variantList.h compress/gzip.h compress/gzipDecompress.h config/config.auto.h config/config.h config/define.auto.h config/define.h crypto/cipherBlock.h crypto/crypto.h info/infoArchive.h info/infoPg.h postgres/interface.h storage/fileRead.h storage/fileWrite.h storage/helper.h storage/info.h storage/storage.h
command/archive/get/file.o: command/archive/get/file.c command/archive/common.h command/archive/get/file.h command/control/control.h common/assert.h common/compress/gzip/common.h common/compress/gzip/decompress.h common/debug.h common/error.auto.h common/error.h common/ini.h common/io/filter/filter.h common/io/filter/group.h common/io/read.h common/io/write.h common/lock.h common/log.h common/logLevel.h common/memContext.h common/stackTrace.h common/time.h common/type/buffer.h common/type/convert.h common/type/keyValue.h common/type/string.h common/type/stringList.h common/type/variant.h common/type/variantList.h config/config.auto.h config/config.h config/define.auto.h config/define.h crypto/cipherBlock.h crypto/crypto.h info/infoArchive.h info/infoPg.h postgres/interface.h storage/fileRead.h storage/fileWrite.h storage/helper.h storage/info.h storage/storage.h
$(CC) $(CFLAGS) -c command/archive/get/file.c -o command/archive/get/file.o
command/archive/get/get.o: command/archive/get/get.c command/archive/common.h command/archive/get/file.h command/archive/get/protocol.h command/command.h common/assert.h common/debug.h common/error.auto.h common/error.h common/fork.h common/io/filter/filter.h common/io/filter/group.h common/io/read.h common/io/write.h common/lock.h common/log.h common/logLevel.h common/memContext.h common/regExp.h common/stackTrace.h common/time.h common/type/buffer.h common/type/convert.h common/type/keyValue.h common/type/string.h common/type/stringList.h common/type/variant.h common/type/variantList.h common/wait.h config/config.auto.h config/config.h config/define.auto.h config/define.h config/exec.h crypto/crypto.h perl/exec.h postgres/interface.h protocol/client.h protocol/command.h protocol/helper.h protocol/parallel.h protocol/parallelJob.h protocol/server.h storage/fileRead.h storage/fileWrite.h storage/helper.h storage/info.h storage/storage.h
@ -231,6 +231,15 @@ command/local/local.o: command/local/local.c command/archive/get/protocol.h comm
command/remote/remote.o: command/remote/remote.c common/assert.h common/debug.h common/error.auto.h common/error.h common/io/filter/filter.h common/io/filter/group.h common/io/handleRead.h common/io/handleWrite.h common/io/read.h common/io/write.h common/lock.h common/log.h common/logLevel.h common/memContext.h common/stackTrace.h common/time.h common/type/buffer.h common/type/convert.h common/type/keyValue.h common/type/string.h common/type/stringList.h common/type/variant.h common/type/variantList.h config/config.auto.h config/config.h config/define.auto.h config/define.h config/protocol.h protocol/client.h protocol/command.h protocol/helper.h protocol/server.h storage/driver/remote/protocol.h
$(CC) $(CFLAGS) -c command/remote/remote.c -o command/remote/remote.o
common/compress/gzip/common.o: common/compress/gzip/common.c common/assert.h common/compress/gzip/common.h common/debug.h common/error.auto.h common/error.h common/logLevel.h common/memContext.h common/stackTrace.h common/type/convert.h
$(CC) $(CFLAGS) -c common/compress/gzip/common.c -o common/compress/gzip/common.o
common/compress/gzip/compress.o: common/compress/gzip/compress.c common/assert.h common/compress/gzip/common.h common/compress/gzip/compress.h common/debug.h common/error.auto.h common/error.h common/io/filter/filter.h common/io/filter/filter.intern.h common/log.h common/logLevel.h common/memContext.h common/stackTrace.h common/type/buffer.h common/type/convert.h common/type/keyValue.h common/type/string.h common/type/variant.h common/type/variantList.h
$(CC) $(CFLAGS) -c common/compress/gzip/compress.c -o common/compress/gzip/compress.o
common/compress/gzip/decompress.o: common/compress/gzip/decompress.c common/assert.h common/compress/gzip/common.h common/compress/gzip/decompress.h common/debug.h common/error.auto.h common/error.h common/io/filter/filter.h common/io/filter/filter.intern.h common/log.h common/logLevel.h common/memContext.h common/stackTrace.h common/type/buffer.h common/type/convert.h common/type/keyValue.h common/type/string.h common/type/variant.h common/type/variantList.h
$(CC) $(CFLAGS) -c common/compress/gzip/decompress.c -o common/compress/gzip/decompress.o
common/debug.o: common/debug.c common/assert.h common/debug.h common/error.auto.h common/error.h common/logLevel.h common/stackTrace.h common/type/convert.h
$(CC) $(CFLAGS) -c common/debug.c -o common/debug.o
@ -354,15 +363,6 @@ common/type/xml.o: common/type/xml.c common/assert.h common/debug.h common/error
common/wait.o: common/wait.c common/assert.h common/debug.h common/error.auto.h common/error.h common/log.h common/logLevel.h common/memContext.h common/stackTrace.h common/time.h common/type/convert.h common/wait.h
$(CC) $(CFLAGS) -c common/wait.c -o common/wait.o
compress/gzip.o: compress/gzip.c common/assert.h common/debug.h common/error.auto.h common/error.h common/logLevel.h common/memContext.h common/stackTrace.h common/type/convert.h compress/gzip.h
$(CC) $(CFLAGS) -c compress/gzip.c -o compress/gzip.o
compress/gzipCompress.o: compress/gzipCompress.c common/assert.h common/debug.h common/error.auto.h common/error.h common/io/filter/filter.h common/io/filter/filter.intern.h common/log.h common/logLevel.h common/memContext.h common/stackTrace.h common/type/buffer.h common/type/convert.h common/type/keyValue.h common/type/string.h common/type/variant.h common/type/variantList.h compress/gzip.h compress/gzipCompress.h
$(CC) $(CFLAGS) -c compress/gzipCompress.c -o compress/gzipCompress.o
compress/gzipDecompress.o: compress/gzipDecompress.c common/assert.h common/debug.h common/error.auto.h common/error.h common/io/filter/filter.h common/io/filter/filter.intern.h common/log.h common/logLevel.h common/memContext.h common/stackTrace.h common/type/buffer.h common/type/convert.h common/type/keyValue.h common/type/string.h common/type/variant.h common/type/variantList.h compress/gzip.h compress/gzipDecompress.h
$(CC) $(CFLAGS) -c compress/gzipDecompress.c -o compress/gzipDecompress.o
config/config.o: config/config.c common/assert.h common/debug.h common/error.auto.h common/error.h common/lock.h common/log.h common/logLevel.h common/memContext.h common/stackTrace.h common/time.h common/type/buffer.h common/type/convert.h common/type/keyValue.h common/type/string.h common/type/stringList.h common/type/variant.h common/type/variantList.h config/config.auto.c config/config.auto.h config/config.h config/define.auto.h config/define.h
$(CC) $(CFLAGS) -c config/config.c -o config/config.o

View File

@ -4,11 +4,11 @@ Archive Get File
#include "command/archive/get/file.h"
#include "command/archive/common.h"
#include "command/control/control.h"
#include "common/compress/gzip/common.h"
#include "common/compress/gzip/decompress.h"
#include "common/debug.h"
#include "common/io/filter/group.h"
#include "common/log.h"
#include "compress/gzip.h"
#include "compress/gzipDecompress.h"
#include "config/config.h"
#include "crypto/cipherBlock.h"
#include "info/infoArchive.h"

View File

@ -3,9 +3,9 @@ Gzip Common
***********************************************************************************************************************************/
#include <zlib.h>
#include "common/compress/gzip/common.h"
#include "common/debug.h"
#include "common/memContext.h"
#include "compress/gzip.h"
/***********************************************************************************************************************************
Constants

View File

@ -1,8 +1,10 @@
/***********************************************************************************************************************************
Gzip Common
***********************************************************************************************************************************/
#ifndef COMPRESS_GZIP_H
#define COMPRESS_GZIP_H
#ifndef COMMON_COMPRESS_GZIP_COMMON_H
#define COMMON_COMPRESS_GZIP_COMMON_H
#include <stdbool.h>
/***********************************************************************************************************************************
Gzip extension

View File

@ -4,12 +4,12 @@ Gzip Compress
#include <stdio.h>
#include <zlib.h>
#include "common/compress/gzip/common.h"
#include "common/compress/gzip/compress.h"
#include "common/debug.h"
#include "common/io/filter/filter.intern.h"
#include "common/log.h"
#include "common/memContext.h"
#include "compress/gzip.h"
#include "compress/gzipCompress.h"
/***********************************************************************************************************************************
Filter type constant

View File

@ -3,8 +3,8 @@ Gzip Compress
Compress IO using the gzip format.
***********************************************************************************************************************************/
#ifndef COMPRESS_GZIPCOMPRESS_H
#define COMPRESS_GZIPCOMPRESS_H
#ifndef COMMON_COMPRESS_GZIP_COMPRESS_H
#define COMMON_COMPRESS_GZIP_COMPRESS_H
/***********************************************************************************************************************************
Object type

View File

@ -4,12 +4,12 @@ Gzip Decompress
#include <stdio.h>
#include <zlib.h>
#include "common/compress/gzip/common.h"
#include "common/compress/gzip/decompress.h"
#include "common/debug.h"
#include "common/io/filter/filter.intern.h"
#include "common/log.h"
#include "common/memContext.h"
#include "compress/gzip.h"
#include "compress/gzipDecompress.h"
/***********************************************************************************************************************************
Filter type constant

View File

@ -3,8 +3,8 @@ Gzip Decompress
Decompress IO from the gzip format.
***********************************************************************************************************************************/
#ifndef COMPRESS_GZIPDECOMPRESS_H
#define COMPRESS_GZIPDECOMPRESS_H
#ifndef COMMON_COMPRESS_GZIP_DECOMPRESS_H
#define COMMON_COMPRESS_GZIP_DECOMPRESS_H
/***********************************************************************************************************************************
Object type

View File

@ -231,6 +231,15 @@ unit:
common/io/http/header: full
common/io/http/query: full
# ----------------------------------------------------------------------------------------------------------------------------
- name: compress-gzip
total: 4
coverage:
common/compress/gzip/common: full
common/compress/gzip/compress: full
common/compress/gzip/decompress: full
# ----------------------------------------------------------------------------------------------------------------------------
- name: exec
total: 1
@ -331,19 +340,6 @@ unit:
coverage:
crypto/cipherBlock: full
# ********************************************************************************************************************************
- name: compress
test:
# ----------------------------------------------------------------------------------------------------------------------------
- name: gzip
total: 4
coverage:
compress/gzip: full
compress/gzipCompress: full
compress/gzipDecompress: full
# ********************************************************************************************************************************
- name: postgres

View File

@ -4,11 +4,11 @@ Test Archive Get Command
#include "postgres/interface.h"
#include "postgres/version.h"
#include "common/compress/gzip/compress.h"
#include "common/harnessConfig.h"
#include "common/harnessFork.h"
#include "common/io/bufferRead.h"
#include "common/io/bufferWrite.h"
#include "compress/gzipCompress.h"
#include "storage/driver/posix/storage.h"
/***********************************************************************************************************************************