diff --git a/TARGETS b/TARGETS index 681ea1cbc..246c2efee 100644 --- a/TARGETS +++ b/TARGETS @@ -73,7 +73,7 @@ sanitizer = read_config("fbcode", "sanitizer") # Let RocksDB aware of jemalloc existence. # Do not enable it if sanitizer presents. -if default_allocator.startswith("jemalloc") and sanitizer == "": +if is_opt_mode and default_allocator.startswith("jemalloc") and sanitizer == "": rocksdb_compiler_flags.append("-DROCKSDB_JEMALLOC") rocksdb_external_deps.append(("jemalloc", None, "headers")) @@ -990,6 +990,11 @@ ROCKS_TESTS = [ "tools/sst_dump_test.cc", "serial", ], + [ + "sst_file_reader_test", + "table/sst_file_reader_test.cc", + "serial", + ], [ "statistics_test", "monitoring/statistics_test.cc", @@ -1100,11 +1105,6 @@ ROCKS_TESTS = [ "utilities/transactions/write_unprepared_transaction_test.cc", "parallel", ], - [ - "sst_file_reader_test", - "table/sst_file_reader_test.cc", - "serial", - ], ] # Generate a test rule for each entry in ROCKS_TESTS diff --git a/buckifier/targets_cfg.py b/buckifier/targets_cfg.py index 80359f770..5378f697a 100644 --- a/buckifier/targets_cfg.py +++ b/buckifier/targets_cfg.py @@ -77,7 +77,7 @@ sanitizer = read_config("fbcode", "sanitizer") # Let RocksDB aware of jemalloc existence. # Do not enable it if sanitizer presents. -if default_allocator.startswith("jemalloc") and sanitizer == "": +if is_opt_mode and default_allocator.startswith("jemalloc") and sanitizer == "": rocksdb_compiler_flags.append("-DROCKSDB_JEMALLOC") rocksdb_external_deps.append(("jemalloc", None, "headers")) """