From db6569cd4a7837bb911653c17c840284cb16c493 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Tue, 7 Apr 2015 15:25:22 -0700 Subject: [PATCH] Fix the compilation error in flashcache.cc on Mac Summary: Fix the following compilation error in flashcache.cc on Mac Undefined symbols for architecture x86_64: "rocksdb::NewFlashcacheAwareEnv(rocksdb::Env*, int)", referenced from: rocksdb::Benchmark::Open(rocksdb::Options*) in db_bench.o Test Plan: make db_bench Reviewers: sdong, igor, rven Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D36657 --- utilities/flashcache/flashcache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/flashcache/flashcache.cc b/utilities/flashcache/flashcache.cc index 059e6efe2..a1a035244 100644 --- a/utilities/flashcache/flashcache.cc +++ b/utilities/flashcache/flashcache.cc @@ -125,7 +125,7 @@ int FlashcacheWhitelistCurrentThread(Env* flashcache_aware_env) { #else // !defined(ROCKSDB_LITE) && defined(OS_LINUX) std::unique_ptr NewFlashcacheAwareEnv(Env* base, - const std::string& flashcache_dev) { + const int cachedev_fd) { return nullptr; } int FlashcacheBlacklistCurrentThread(Env* flashcache_aware_env) { return -1; }