Fix incorrect path for exportMetadataInRocksDBCommand (#8941)

This commit is contained in:
rongtong
2024-11-18 17:25:20 +08:00
committed by GitHub
parent c961edd2fd
commit bf2f2a7774
@@ -77,8 +77,11 @@ public class ExportMetadataInRocksDBCommand implements SubCommand {
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")) {