Dump db stats in WARN level
Summary: Dump db stats in WARN level Test Plan: run db_bench and verify the LOG Reviewers: igor, MarkCallaghan Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D38691
This commit is contained in:
parent
b588505a7f
commit
812c461c96
@ -425,7 +425,7 @@ const Status DBImpl::CreateArchivalDirectory() {
|
|||||||
void DBImpl::PrintStatistics() {
|
void DBImpl::PrintStatistics() {
|
||||||
auto dbstats = db_options_.statistics.get();
|
auto dbstats = db_options_.statistics.get();
|
||||||
if (dbstats) {
|
if (dbstats) {
|
||||||
Log(InfoLogLevel::INFO_LEVEL, db_options_.info_log,
|
Log(InfoLogLevel::WARN_LEVEL, db_options_.info_log,
|
||||||
"STATISTICS:\n %s",
|
"STATISTICS:\n %s",
|
||||||
dbstats->ToString().c_str());
|
dbstats->ToString().c_str());
|
||||||
}
|
}
|
||||||
@ -464,9 +464,9 @@ void DBImpl::MaybeDumpStats() {
|
|||||||
DB::Properties::kDBStats,
|
DB::Properties::kDBStats,
|
||||||
&stats);
|
&stats);
|
||||||
}
|
}
|
||||||
Log(InfoLogLevel::INFO_LEVEL,
|
Log(InfoLogLevel::WARN_LEVEL,
|
||||||
db_options_.info_log, "------- DUMPING STATS -------");
|
db_options_.info_log, "------- DUMPING STATS -------");
|
||||||
Log(InfoLogLevel::INFO_LEVEL,
|
Log(InfoLogLevel::WARN_LEVEL,
|
||||||
db_options_.info_log, "%s", stats.c_str());
|
db_options_.info_log, "%s", stats.c_str());
|
||||||
#endif // !ROCKSDB_LITE
|
#endif // !ROCKSDB_LITE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user