Skip to content

Commit d7032da

Browse files
committed
fix pmd
1 parent 18c63b8 commit d7032da

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

hadoop-ozone/cli-repair/src/main/java/org/apache/hadoop/ozone/repair/ldb/RocksDBManualCompaction.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ public class RocksDBManualCompaction extends RepairTool {
6161
@CommandLine.ArgGroup(multiplicity = "1")
6262
private ColumnFamilyOption columnFamilyOption;
6363

64+
@CommandLine.Option(names = {"--bottommost-level-compaction", "--blc"},
65+
description = "BottommostLevelCompaction option for RocksDB compaction." +
66+
" Valid values: 0 (kSkip), 1 (kIfHaveCompactionFilter), 2 (kForce), 3 (kForceOptimized).",
67+
defaultValue = "0",
68+
showDefaultValue = CommandLine.Help.Visibility.ALWAYS)
69+
private int bottommostLevelCompaction;
70+
6471
static class ColumnFamilyOption {
6572
@CommandLine.Option(names = {"--column-family", "--cf"},
6673
description = "Column family name")
@@ -77,13 +84,6 @@ String getColumnFamilyName() {
7784
}
7885
}
7986

80-
@CommandLine.Option(names = {"--bottommost-level-compaction", "--blc"},
81-
description = "BottommostLevelCompaction option for RocksDB compaction." +
82-
" Valid values: 0 (kSkip), 1 (kIfHaveCompactionFilter), 2 (kForce), 3 (kForceOptimized).",
83-
defaultValue = "0",
84-
showDefaultValue = CommandLine.Help.Visibility.ALWAYS)
85-
private int bottommostLevelCompaction;
86-
8787
private String getConsoleReadLineWithFormat() {
8888
err().printf(WARNING_TO_STOP_SERVICE);
8989
return getScanner().nextLine().trim();

0 commit comments

Comments
 (0)