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:
parent
1e3d9de0f6
commit
2f0827975c
2 changed files with 2 additions and 10 deletions
|
@ -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(
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue