]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
Fix a compile error in ROCKSDB_LITE in db/db_impl.cc
authorYueh-Hsuan Chiang <yhchiang@fb.com>
Fri, 10 Apr 2015 00:05:17 +0000 (17:05 -0700)
committerYueh-Hsuan Chiang <yhchiang@fb.com>
Fri, 10 Apr 2015 04:31:44 +0000 (21:31 -0700)
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

index 826612e3d9a1830a339c020abbd22f497ab8bfe5..f23e4de2b09ee695e91a3c31319e7a71e4b3d8a8 100644 (file)
@@ -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();
   }