Skip to content

Commit

Permalink
Include jemalloc_helper.h only if ROCKSDB_JEMALLOC is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
toktarev committed Mar 19, 2019
1 parent f4644de commit 0b86b91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/malloc_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
#include <memory>
#include <string.h>

#ifdef ROCKSDB_JEMALLOC
#include "port/jemalloc_helper.h"

#endif // ROCKSDB_JEMALLOC

namespace rocksdb {

Expand Down
3 changes: 3 additions & 0 deletions util/jemalloc_nodump_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
#include <atomic>
#include <vector>

#ifdef ROCKSDB_JEMALLOC
#include "port/jemalloc_helper.h"
#include "port/port.h"
#endif // ROCKSDB_JEMALLOC

#include "rocksdb/memory_allocator.h"
#include "util/core_local.h"
#include "util/thread_local.h"
Expand Down

0 comments on commit 0b86b91

Please sign in to comment.