Skip to content

Commit

Permalink
refactor: add 'start_time' in CompactionJob
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Jun 22, 2024
1 parent d08b56e commit 840e642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/mito2/src/compaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ impl CompactionScheduler {
let remote_compaction_job = CompactionJob {
compaction_region: compaction_region.clone(),
picker_output: picker_output.clone(),
start_time,
};

let result = remote_job_scheduler
Expand Down
1 change: 1 addition & 0 deletions src/mito2/src/schedule/remote_job_scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub enum RemoteJob {
pub struct CompactionJob {
pub compaction_region: CompactionRegion,
pub picker_output: PickerOutput,
pub start_time: Instant,
}

/// RemoteJobResult is the result of a remote job.
Expand Down

0 comments on commit 840e642

Please sign in to comment.