make jemalloc dependency really optional (#101)

Signed-off-by: Sebastien Marie <semarie@online.fr>
This commit is contained in:
Landry Breuil
2022-08-03 11:57:00 +02:00
committed by GitHub
parent da6271a331
commit 019b100521
2 changed files with 9 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
//! the state_compressor_state table so that the compressor can seemlesly
//! continue from where it left off.
#[cfg(feature = "jemalloc")]
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;