From: Yueh-Hsuan Chiang Date: Fri, 10 Apr 2015 00:05:17 +0000 (-0700) Subject: Fix a compile error in ROCKSDB_LITE in db/db_impl.cc X-Git-Tag: rocksdb-3.10.1~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=159a99f6c3156049c5f362c78234c8fc45d9585a;p=rocksdb.git 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 --- diff --git a/db/db_impl.cc b/db/db_impl.cc index 826612e3..f23e4de2 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -416,6 +416,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 = @@ -436,6 +437,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(); }