Skip to content

Commit

Permalink
Fix incorrect path for exportMetadataInRocksDBCommand (#8941)
Browse files Browse the repository at this point in the history
  • Loading branch information
RongtongJin authored Nov 18, 2024
1 parent c961edd commit bf2f2a7
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ public void execute(CommandLine commandLine, Options options, RPCHook rpcHook) t
return;
}

String configType = commandLine.getOptionValue("configType").trim().toLowerCase();
path += "/" + configType;
String configType = commandLine.getOptionValue("configType").trim();
if (!path.endsWith("/")) {
path += "/";
}
path += configType;

boolean jsonEnable = false;
if (commandLine.hasOption("jsonEnable")) {
Expand Down

0 comments on commit bf2f2a7

Please sign in to comment.