@ -630,18 +630,21 @@ void ColumnFamilyData::NotifyOnCompactionCompleted(
DB * db , Compaction * c , const Status & status ) {
DB * db , Compaction * c , const Status & status ) {
# ifndef ROCKSDB_LITE
# ifndef ROCKSDB_LITE
auto listeners = ioptions ( ) - > listeners ;
auto listeners = ioptions ( ) - > listeners ;
ASSERT_GT ( listeners . size ( ) , 0U ) ;
CompactionJobInfo info ;
CompactionJobInfo info ;
info . cf_name = c - > column_family_data ( ) - > GetName ( ) ;
info . cf_name = c - > column_family_data ( ) - > GetName ( ) ;
info . status = status ;
info . status = status ;
info . output_level = c - > output_level ( ) ;
info . output_level = c - > output_level ( ) ;
for ( const auto fmd : * c - > inputs ( c - > level ( ) ) ) {
for ( size_t i = 0 ; i < c - > num_input_levels ( ) ; + + i ) {
info . input_files . push_back (
for ( const auto fmd : * c - > inputs ( i ) ) {
TableFileName ( options_ . db_paths ,
info . input_files . push_back (
fmd - > fd . GetNumber ( ) ,
TableFileName ( options_ . db_paths ,
fmd - > fd . GetPathId ( ) ) ) ;
fmd - > fd . GetNumber ( ) ,
fmd - > fd . GetPathId ( ) ) ) ;
}
}
}
for ( const auto newf : c - > edit ( ) - > GetNewFiles ( ) ) {
for ( const auto newf : c - > edit ( ) - > GetNewFiles ( ) ) {
info . in put_files. push_back (
info . out put_files. push_back (
TableFileName ( options_ . db_paths ,
TableFileName ( options_ . db_paths ,
newf . second . fd . GetNumber ( ) ,
newf . second . fd . GetNumber ( ) ,
newf . second . fd . GetPathId ( ) ) ) ;
newf . second . fd . GetPathId ( ) ) ) ;