Skip to content

Commit

Permalink
HDDS-12086. Allow --db option at leaf subcommand in debug tools
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai committed Jan 16, 2025
1 parent 6c41a9a commit 36f069c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ void testLDBScan(
// Prepare scan args
List<String> completeScanArgs = new ArrayList<>();
completeScanArgs.addAll(Arrays.asList(
"--db", dbStore.getDbLocation().getAbsolutePath(),
"scan",
"--db", dbStore.getDbLocation().getAbsolutePath(),
"--column-family", tableName));
completeScanArgs.addAll(scanArgs);

Expand Down Expand Up @@ -353,9 +353,9 @@ void testScanWithRecordsPerFile() throws IOException {
// Prepare scan args
int maxRecordsPerFile = 2;
List<String> completeScanArgs1 = new ArrayList<>(Arrays.asList(
"--db", dbStore.getDbLocation().getAbsolutePath(),
"scan",
"--column-family", KEY_TABLE, "--out", scanDir1 + File.separator + "keytable",
"--db", dbStore.getDbLocation().getAbsolutePath(),
"--max-records-per-file", String.valueOf(maxRecordsPerFile)));
File tmpDir1 = new File(scanDir1);
tmpDir1.deleteOnExit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class RDBParser implements DebugSubcommand {

@CommandLine.Option(names = {"--db"},
required = true,
scope = CommandLine.ScopeType.INHERIT,
description = "Database File Path")
private String dbPath;

Expand Down

0 comments on commit 36f069c

Please sign in to comment.