Skip to content

Commit 02412eb

Browse files
RongtongJinRongtongJin
andauthored
[ISSUE #9933] Fix the failure when RocksDBConfigToJsonCommand exports locally. (#9934)
Co-authored-by: RongtongJin <user@example.com>
1 parent 0792474 commit 02412eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/src/main/java/org/apache/rocketmq/tools/command/metadata/RocksDBConfigToJsonCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private void handleLocalMode(CommandLine commandLine) {
130130
System.out.print("Rocksdb path is invalid.\n");
131131
return;
132132
}
133-
path = Paths.get(path, type.toString()).toString();
133+
path = Paths.get(path, type.getTypeName()).toString();
134134
String exportFile = commandLine.hasOption("exportFile") ? commandLine.getOptionValue("exportFile").trim() : null;
135135
Map<String, JSONObject> configMap = getConfigMapFromRocksDB(path, type);
136136
if (configMap != null) {

0 commit comments

Comments
 (0)