@ -78,6 +78,9 @@ class Compaction {
// Does this compaction include all sst files?
// Does this compaction include all sst files?
bool IsFullCompaction ( ) { return is_full_compaction_ ; }
bool IsFullCompaction ( ) { return is_full_compaction_ ; }
// Was this compaction triggered manually by the client?
bool IsManualCompaction ( ) { return is_manual_compaction_ ; }
private :
private :
friend class CompactionPicker ;
friend class CompactionPicker ;
friend class UniversalCompactionPicker ;
friend class UniversalCompactionPicker ;
@ -117,6 +120,9 @@ class Compaction {
// Does this compaction include all sst files?
// Does this compaction include all sst files?
bool is_full_compaction_ ;
bool is_full_compaction_ ;
// Is this compaction requested by the client?
bool is_manual_compaction_ ;
// level_ptrs_ holds indices into input_version_->levels_: our state
// level_ptrs_ holds indices into input_version_->levels_: our state
// is that we are positioned at one of the file ranges for each
// is that we are positioned at one of the file ranges for each
// higher level than the ones involved in this compaction (i.e. for
// higher level than the ones involved in this compaction (i.e. for