From 9741dec0e5ad9e470132bf4c494345c04a387bc9 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Thu, 9 Apr 2015 17:05:17 -0700 Subject: [PATCH] Fix a compile error in ROCKSDB_LITE in db/db_impl.cc Summary: Fix a compile error in ROCKSDB_LITE in db/db_impl.cc related to internal_stats. Test Plan: make OPT=-DROCKSDB_LITE shared_lib Reviewers: sdong, igor Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D36819 --- db/db_impl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/db_impl.cc b/db/db_impl.cc index 70e6f1786..f0fba4950 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -430,6 +430,7 @@ void DBImpl::MaybeDumpStats() { // period in rare cases. last_stats_dump_time_microsec_ = now_micros; +#ifndef ROCKSDB_LITE bool tmp1 = false; bool tmp2 = false; DBPropertyType cf_property_type = @@ -452,6 +453,7 @@ void DBImpl::MaybeDumpStats() { db_options_.info_log, "------- DUMPING STATS -------"); Log(InfoLogLevel::INFO_LEVEL, db_options_.info_log, "%s", stats.c_str()); +#endif // !ROCKSDB_LITE PrintStatistics(); }