@ -20,7 +20,7 @@ IOStatus FileSystemTracingWrapper::NewSequentialFile(
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -34,7 +34,7 @@ IOStatus FileSystemTracingWrapper::NewRandomAccessFile(
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -48,7 +48,7 @@ IOStatus FileSystemTracingWrapper::NewWritableFile(
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -62,7 +62,7 @@ IOStatus FileSystemTracingWrapper::ReopenWritableFile(
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -78,7 +78,7 @@ IOStatus FileSystemTracingWrapper::ReuseWritableFile(
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -92,7 +92,7 @@ IOStatus FileSystemTracingWrapper::NewRandomRWFile(
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -106,7 +106,7 @@ IOStatus FileSystemTracingWrapper::NewDirectory(
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
name . substr ( name . find_last_of ( " / \\ " ) + 1 ) ) ;
name . substr ( name . find_last_of ( " / \\ " ) + 1 ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -121,7 +121,7 @@ IOStatus FileSystemTracingWrapper::GetChildren(const std::string& dir,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
dir . substr ( dir . find_last_of ( " / \\ " ) + 1 ) ) ;
dir . substr ( dir . find_last_of ( " / \\ " ) + 1 ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -135,7 +135,7 @@ IOStatus FileSystemTracingWrapper::DeleteFile(const std::string& fname,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -149,7 +149,7 @@ IOStatus FileSystemTracingWrapper::CreateDir(const std::string& dirname,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
dirname . substr ( dirname . find_last_of ( " / \\ " ) + 1 ) ) ;
dirname . substr ( dirname . find_last_of ( " / \\ " ) + 1 ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -162,7 +162,7 @@ IOStatus FileSystemTracingWrapper::CreateDirIfMissing(
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
dirname . substr ( dirname . find_last_of ( " / \\ " ) + 1 ) ) ;
dirname . substr ( dirname . find_last_of ( " / \\ " ) + 1 ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -176,7 +176,7 @@ IOStatus FileSystemTracingWrapper::DeleteDir(const std::string& dirname,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
dirname . substr ( dirname . find_last_of ( " / \\ " ) + 1 ) ) ;
dirname . substr ( dirname . find_last_of ( " / \\ " ) + 1 ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -193,7 +193,7 @@ IOStatus FileSystemTracingWrapper::GetFileSize(const std::string& fname,
IOTraceRecord io_record (
IOTraceRecord io_record (
clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data , __func__ , elapsed ,
clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data , __func__ , elapsed ,
s . ToString ( ) , fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) , * file_size ) ;
s . ToString ( ) , fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) , * file_size ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -210,7 +210,7 @@ IOStatus FileSystemTracingWrapper::Truncate(const std::string& fname,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) ,
__func__ , elapsed , s . ToString ( ) ,
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) , size ) ;
fname . substr ( fname . find_last_of ( " / \\ " ) + 1 ) , size ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -227,7 +227,7 @@ IOStatus FSSequentialFileTracingWrapper::Read(size_t n,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) , file_name_ ,
__func__ , elapsed , s . ToString ( ) , file_name_ ,
result - > size ( ) , 0 /*Offset*/ ) ;
result - > size ( ) , 0 /*Offset*/ ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -243,7 +243,7 @@ IOStatus FSSequentialFileTracingWrapper::InvalidateCache(size_t offset,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) , file_name_ , length ,
__func__ , elapsed , s . ToString ( ) , file_name_ , length ,
offset ) ;
offset ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , nullptr /*dbg*/ ) ;
return s ;
return s ;
}
}
@ -261,7 +261,7 @@ IOStatus FSSequentialFileTracingWrapper::PositionedRead(
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) , file_name_ ,
__func__ , elapsed , s . ToString ( ) , file_name_ ,
result - > size ( ) , offset ) ;
result - > size ( ) , offset ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -279,7 +279,7 @@ IOStatus FSRandomAccessFileTracingWrapper::Read(uint64_t offset, size_t n,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) , file_name_ , n ,
__func__ , elapsed , s . ToString ( ) , file_name_ , n ,
offset ) ;
offset ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -299,7 +299,7 @@ IOStatus FSRandomAccessFileTracingWrapper::MultiRead(FSReadRequest* reqs,
IOTraceRecord io_record (
IOTraceRecord io_record (
clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data , __func__ , latency ,
clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data , __func__ , latency ,
reqs [ i ] . status . ToString ( ) , file_name_ , reqs [ i ] . len , reqs [ i ] . offset ) ;
reqs [ i ] . status . ToString ( ) , file_name_ , reqs [ i ] . len , reqs [ i ] . offset ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
}
}
return s ;
return s ;
}
}
@ -317,7 +317,7 @@ IOStatus FSRandomAccessFileTracingWrapper::Prefetch(uint64_t offset, size_t n,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) , file_name_ , n ,
__func__ , elapsed , s . ToString ( ) , file_name_ , n ,
offset ) ;
offset ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -333,7 +333,7 @@ IOStatus FSRandomAccessFileTracingWrapper::InvalidateCache(size_t offset,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) , file_name_ , length ,
__func__ , elapsed , s . ToString ( ) , file_name_ , length ,
static_cast < uint64_t > ( offset ) ) ;
static_cast < uint64_t > ( offset ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , nullptr /*dbg*/ ) ;
return s ;
return s ;
}
}
@ -349,7 +349,7 @@ IOStatus FSWritableFileTracingWrapper::Append(const Slice& data,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) , file_name_ ,
__func__ , elapsed , s . ToString ( ) , file_name_ ,
data . size ( ) , 0 /*Offset*/ ) ;
data . size ( ) , 0 /*Offset*/ ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -366,7 +366,7 @@ IOStatus FSWritableFileTracingWrapper::PositionedAppend(
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) , file_name_ ,
__func__ , elapsed , s . ToString ( ) , file_name_ ,
data . size ( ) , offset ) ;
data . size ( ) , offset ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -382,7 +382,7 @@ IOStatus FSWritableFileTracingWrapper::Truncate(uint64_t size,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) , file_name_ , size ,
__func__ , elapsed , s . ToString ( ) , file_name_ , size ,
0 /*Offset*/ ) ;
0 /*Offset*/ ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -395,7 +395,7 @@ IOStatus FSWritableFileTracingWrapper::Close(const IOOptions& options,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
file_name_ ) ;
file_name_ ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -409,7 +409,7 @@ uint64_t FSWritableFileTracingWrapper::GetFileSize(const IOOptions& options,
io_op_data | = ( 1 < < IOTraceOp : : kIOFileSize ) ;
io_op_data | = ( 1 < < IOTraceOp : : kIOFileSize ) ;
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , " OK " , file_name_ , file_size ) ;
__func__ , elapsed , " OK " , file_name_ , file_size ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return file_size ;
return file_size ;
}
}
@ -425,7 +425,7 @@ IOStatus FSWritableFileTracingWrapper::InvalidateCache(size_t offset,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) , file_name_ , length ,
__func__ , elapsed , s . ToString ( ) , file_name_ , length ,
static_cast < uint64_t > ( offset ) ) ;
static_cast < uint64_t > ( offset ) ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , nullptr /*dbg*/ ) ;
return s ;
return s ;
}
}
@ -442,7 +442,7 @@ IOStatus FSRandomRWFileTracingWrapper::Write(uint64_t offset, const Slice& data,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) , file_name_ ,
__func__ , elapsed , s . ToString ( ) , file_name_ ,
data . size ( ) , offset ) ;
data . size ( ) , offset ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -460,7 +460,7 @@ IOStatus FSRandomRWFileTracingWrapper::Read(uint64_t offset, size_t n,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer , io_op_data ,
__func__ , elapsed , s . ToString ( ) , file_name_ , n ,
__func__ , elapsed , s . ToString ( ) , file_name_ , n ,
offset ) ;
offset ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -473,7 +473,7 @@ IOStatus FSRandomRWFileTracingWrapper::Flush(const IOOptions& options,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
file_name_ ) ;
file_name_ ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -486,7 +486,7 @@ IOStatus FSRandomRWFileTracingWrapper::Close(const IOOptions& options,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
file_name_ ) ;
file_name_ ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -499,7 +499,7 @@ IOStatus FSRandomRWFileTracingWrapper::Sync(const IOOptions& options,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
file_name_ ) ;
file_name_ ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
@ -512,7 +512,7 @@ IOStatus FSRandomRWFileTracingWrapper::Fsync(const IOOptions& options,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
IOTraceRecord io_record ( clock_ - > NowNanos ( ) , TraceType : : kIOTracer ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
0 /*io_op_data*/ , __func__ , elapsed , s . ToString ( ) ,
file_name_ ) ;
file_name_ ) ;
io_tracer_ - > WriteIOOp ( io_record ) ;
io_tracer_ - > WriteIOOp ( io_record , dbg ) ;
return s ;
return s ;
}
}
} // namespace ROCKSDB_NAMESPACE
} // namespace ROCKSDB_NAMESPACE