@ -2080,11 +2080,11 @@ Status DBImpl::FinishCompactionOutputFile(CompactionState* compact,
if ( s . ok ( ) & & ! options_ . disableDataSync ) {
if ( options_ . use_fsync ) {
StopWatch sw ( env_ , options_ . statistics . get ( ) ,
COMPACTION_OUTFILE_SYNC_MICROS ) ;
COMPACTION_OUTFILE_SYNC_MICROS , false ) ;
s = compact - > outfile - > Fsync ( ) ;
} else {
StopWatch sw ( env_ , options_ . statistics . get ( ) ,
COMPACTION_OUTFILE_SYNC_MICROS ) ;
COMPACTION_OUTFILE_SYNC_MICROS , false ) ;
s = compact - > outfile - > Sync ( ) ;
}
}
@ -2717,7 +2717,7 @@ Status DBImpl::GetImpl(const ReadOptions& options,
bool * value_found ) {
Status s ;
StopWatch sw ( env_ , options_ . statistics . get ( ) , DB_GET ) ;
StopWatch sw ( env_ , options_ . statistics . get ( ) , DB_GET , false ) ;
StopWatchNano snapshot_timer ( env_ , false ) ;
StartPerfTimer ( & snapshot_timer ) ;
SequenceNumber snapshot ;
@ -2798,7 +2798,7 @@ Status DBImpl::GetImpl(const ReadOptions& options,
std : : vector < Status > DBImpl : : MultiGet ( const ReadOptions & options ,
const std : : vector < Slice > & keys ,
std : : vector < std : : string > * values ) {
StopWatch sw ( env_ , options_ . statistics . get ( ) , DB_MULTIGET ) ;
StopWatch sw ( env_ , options_ . statistics . get ( ) , DB_MULTIGET , false ) ;
StopWatchNano snapshot_timer ( env_ , false ) ;
StartPerfTimer ( & snapshot_timer ) ;
@ -2958,7 +2958,7 @@ Status DBImpl::Write(const WriteOptions& options, WriteBatch* my_batch) {
w . disableWAL = options . disableWAL ;
w . done = false ;
StopWatch sw ( env_ , options_ . statistics . get ( ) , DB_WRITE ) ;
StopWatch sw ( env_ , options_ . statistics . get ( ) , DB_WRITE , false ) ;
mutex_ . Lock ( ) ;
writers_ . push_back ( & w ) ;
while ( ! w . done & & & w ! = writers_ . front ( ) ) {