@ -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