HAVE_LZ4 -> HAVE_CITUS_LZ4 (#5541)

pull/5544/head
Onur Tirtir 2021-12-16 16:21:52 +03:00 committed by GitHub
parent c0945d88de
commit cc4c83b1e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 9 deletions

6
configure vendored
View File

@ -4543,7 +4543,9 @@ if test "${with_lz4+set}" = set; then :
withval=$with_lz4; withval=$with_lz4;
case $withval in case $withval in
yes) yes)
:
$as_echo "#define HAVE_CITUS_LIBLZ4 1" >>confdefs.h
;; ;;
no) no)
: :
@ -4556,6 +4558,8 @@ if test "${with_lz4+set}" = set; then :
else else
with_lz4=yes with_lz4=yes
$as_echo "#define HAVE_CITUS_LIBLZ4 1" >>confdefs.h
fi fi

View File

@ -220,7 +220,8 @@ AC_DEFINE_UNQUOTED(REPORTS_BASE_URL, "$REPORTS_BASE_URL",
# LZ4 # LZ4
# #
PGAC_ARG_BOOL(with, lz4, yes, PGAC_ARG_BOOL(with, lz4, yes,
[do not use lz4]) [do not use lz4],
[AC_DEFINE([HAVE_CITUS_LIBLZ4], 1, [Define to 1 to build with lz4 support. (--with-lz4)])])
AC_SUBST(with_lz4) AC_SUBST(with_lz4)
if test "$with_lz4" = yes; then if test "$with_lz4" = yes; then

View File

@ -29,7 +29,7 @@
#if HAVE_LIBZSTD #if HAVE_LIBZSTD
#define DEFAULT_COMPRESSION_TYPE COMPRESSION_ZSTD #define DEFAULT_COMPRESSION_TYPE COMPRESSION_ZSTD
#elif HAVE_LIBLZ4 #elif HAVE_CITUS_LIBLZ4
#define DEFAULT_COMPRESSION_TYPE COMPRESSION_LZ4 #define DEFAULT_COMPRESSION_TYPE COMPRESSION_LZ4
#else #else
#define DEFAULT_COMPRESSION_TYPE COMPRESSION_PG_LZ #define DEFAULT_COMPRESSION_TYPE COMPRESSION_PG_LZ
@ -44,7 +44,7 @@ static const struct config_enum_entry columnar_compression_options[] =
{ {
{ "none", COMPRESSION_NONE, false }, { "none", COMPRESSION_NONE, false },
{ "pglz", COMPRESSION_PG_LZ, false }, { "pglz", COMPRESSION_PG_LZ, false },
#if HAVE_LIBLZ4 #if HAVE_CITUS_LIBLZ4
{ "lz4", COMPRESSION_LZ4, false }, { "lz4", COMPRESSION_LZ4, false },
#endif #endif
#if HAVE_LIBZSTD #if HAVE_LIBZSTD

View File

@ -19,7 +19,7 @@
#include "columnar/columnar_compression.h" #include "columnar/columnar_compression.h"
#if HAVE_LIBLZ4 #if HAVE_CITUS_LIBLZ4
#include <lz4.h> #include <lz4.h>
#endif #endif
@ -63,7 +63,7 @@ CompressBuffer(StringInfo inputBuffer,
{ {
switch (compressionType) switch (compressionType)
{ {
#if HAVE_LIBLZ4 #if HAVE_CITUS_LIBLZ4
case COMPRESSION_LZ4: case COMPRESSION_LZ4:
{ {
int maximumLength = LZ4_compressBound(inputBuffer->len); int maximumLength = LZ4_compressBound(inputBuffer->len);
@ -170,7 +170,7 @@ DecompressBuffer(StringInfo buffer,
return buffer; return buffer;
} }
#if HAVE_LIBLZ4 #if HAVE_CITUS_LIBLZ4
case COMPRESSION_LZ4: case COMPRESSION_LZ4:
{ {
StringInfo decompressedBuffer = makeStringInfo(); StringInfo decompressedBuffer = makeStringInfo();

View File

@ -38,7 +38,7 @@
#undef HAVE_LIBCURL #undef HAVE_LIBCURL
/* Define to 1 if you have the `lz4' library (-llz4). */ /* Define to 1 if you have the `lz4' library (-llz4). */
#undef HAVE_LIBLZ4 #undef HAVE_CITUS_LIBLZ4
/* Define to 1 if you have the `zstd' library (-lzstd). */ /* Define to 1 if you have the `zstd' library (-lzstd). */
#undef HAVE_LIBZSTD #undef HAVE_LIBZSTD

View File

@ -25,7 +25,7 @@
#undef HAVE_LIBCURL #undef HAVE_LIBCURL
/* Define to 1 if you have the `liblz4' library (-llz4). */ /* Define to 1 if you have the `liblz4' library (-llz4). */
#undef HAVE_LIBLZ4 #undef HAVE_CITUS_LIBLZ4
/* Define to 1 if you have the `libzstd' library (-lzstd). */ /* Define to 1 if you have the `libzstd' library (-lzstd). */
#undef HAVE_LIBZSTD #undef HAVE_LIBZSTD