Skip to content

Commit e39141c

Browse files
committed
Fixed working of --with-zstd option. Fixed compilation with ZSTD compression
1 parent 02b5b5b commit e39141c

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

src/Makefile.global.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ with_libxslt = @with_libxslt@
193193
with_system_tzdata = @with_system_tzdata@
194194
with_uuid = @with_uuid@
195195
with_zlib = @with_zlib@
196+
with_zstd = @with_zstd@
196197
enable_rpath = @enable_rpath@
197198
enable_nls = @enable_nls@
198199
enable_debug = @enable_debug@

src/backend/storage/file/cfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ size_t cfs_compress(void* dst, size_t dst_size, void const* src, size_t src_size
164164

165165
size_t cfs_decompress(void* dst, size_t dst_size, void const* src, size_t src_size)
166166
{
167-
return ZSTD_decompress(dst, dest_size, src, src_size);
167+
return ZSTD_decompress(dst, dst_size, src, src_size);
168168
}
169169

170170
char const* cfs_algorithm()

src/include/pg_config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,9 @@
896896
/* Define to 1 if `wcstombs_l' requires <xlocale.h>. */
897897
#undef WCSTOMBS_L_IN_XLOCALE
898898

899+
/* Define to 6 to use zstd compression library */
900+
#undef CFS_COMPRESSOR
901+
899902
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
900903
significant byte first (like Motorola and SPARC, unlike Intel). */
901904
#if defined AC_APPLE_UNIVERSAL_BUILD

src/include/storage/cfs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef __CFS_H__
22
#define __CFS_H__
33

4+
#include "pg_config.h"
5+
46
#include "port/atomics.h"
57

68
#define CFS_VERSION "0.21"

0 commit comments

Comments
 (0)