@ -297,7 +297,7 @@ CompactionJob::CompactionJob(
assert ( log_buffer_ ! = nullptr ) ;
assert ( log_buffer_ ! = nullptr ) ;
const auto * cfd = compact_ - > compaction - > column_family_data ( ) ;
const auto * cfd = compact_ - > compaction - > column_family_data ( ) ;
ThreadStatusUtil : : SetColumnFamily ( cfd , cfd - > ioptions ( ) - > env ,
ThreadStatusUtil : : SetColumnFamily ( cfd , cfd - > ioptions ( ) - > env ,
cfd - > options ( ) - > enable_thread_tracking ) ;
db_options_ . enable_thread_tracking ) ;
ThreadStatusUtil : : SetThreadOperation ( ThreadStatus : : OP_COMPACTION ) ;
ThreadStatusUtil : : SetThreadOperation ( ThreadStatus : : OP_COMPACTION ) ;
ReportStartedCompaction ( compaction ) ;
ReportStartedCompaction ( compaction ) ;
}
}
@ -311,7 +311,7 @@ void CompactionJob::ReportStartedCompaction(
Compaction * compaction ) {
Compaction * compaction ) {
const auto * cfd = compact_ - > compaction - > column_family_data ( ) ;
const auto * cfd = compact_ - > compaction - > column_family_data ( ) ;
ThreadStatusUtil : : SetColumnFamily ( cfd , cfd - > ioptions ( ) - > env ,
ThreadStatusUtil : : SetColumnFamily ( cfd , cfd - > ioptions ( ) - > env ,
cfd - > options ( ) - > enable_thread_tracking ) ;
db_options_ . enable_thread_tracking ) ;
ThreadStatusUtil : : SetThreadOperationProperty (
ThreadStatusUtil : : SetThreadOperationProperty (
ThreadStatus : : COMPACTION_JOB_ID ,
ThreadStatus : : COMPACTION_JOB_ID ,