1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00

chore: enable heap allocations for lz4 context

Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
kostas 2024-12-11 13:43:55 +02:00
parent 1e3d9de0f6
commit 2f0827975c
No known key found for this signature in database
GPG key ID: 1860AC7B1177CACB
2 changed files with 2 additions and 10 deletions

View file

@ -88,7 +88,7 @@ add_third_party(
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND echo skip
BUILD_COMMAND ${DFLY_TOOLS_MAKE} lib-release
INSTALL_COMMAND ${DFLY_TOOLS_MAKE} install BUILD_SHARED=no PREFIX=${THIRD_PARTY_LIB_DIR}/lz4
INSTALL_COMMAND ${DFLY_TOOLS_MAKE} install BUILD_SHARED=no CFLAGS=-DLZ4F_HEAPMODE=1 PREFIX=${THIRD_PARTY_LIB_DIR}/lz4
)
add_third_party(

View file

@ -165,15 +165,7 @@ std::string AbslUnparseFlag(dfly::CompressionMode flag) {
}
dfly::CompressionMode GetDefaultCompressionMode() {
const auto flag = absl::GetFlag(FLAGS_compression_mode);
if (ServerState::tlocal()->serialization_max_chunk_size == 0) {
return flag;
}
static bool once = flag != dfly::CompressionMode::NONE;
LOG_IF(WARNING, once) << "Setting CompressionMode to NONE because big value serialization is on";
once = false;
return dfly::CompressionMode::NONE;
return absl::GetFlag(FLAGS_compression_mode);
}
uint8_t RdbObjectType(const PrimeValue& pv) {