Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite39141c

Browse files
committed
Fixed working of --with-zstd option. Fixed compilation with ZSTD compression
1 parent02b5b5b commite39141c

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_tcfs_decompress(void*dst,size_tdst_size,voidconst*src,size_tsrc_size)
166166
{
167-
returnZSTD_decompress(dst,dest_size,src,src_size);
167+
returnZSTD_decompress(dst,dst_size,src,src_size);
168168
}
169169

170170
charconst*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 definedAC_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
#defineCFS_VERSION "0.21"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp