Skip to content

Commit

Permalink
fixed potential bug from review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrr888 committed Jul 9, 2024
1 parent b041911 commit ff9b9d9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1277,14 +1277,10 @@ private Optional<CompactionInfo> reserveFilesForCompaction(CompactionServiceId s
if (job.getKind() == CompactionKind.USER) {
cInfo.iters = compactionConfig.getIterators();
cInfo.checkCompactionId = this.compactionId;
cInfo.localCompactionCfg = this.compactionConfig;
}

cInfo.localHelper = this.chelper;
cInfo.localCompactionCfg = this.compactionConfig;
// don't include execution hints, which may have been previously set, for system compactions
if (job.getKind() == CompactionKind.SYSTEM) {
cInfo.localCompactionCfg.setExecutionHints(Collections.emptyMap());
}
}

// Check to ensure the tablet actually has these files now that they are reserved. Compaction
Expand Down

0 comments on commit ff9b9d9

Please sign in to comment.