This is an automated email from the ASF dual-hosted git repository.

ltamber pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new bf2f2a7774 Fix incorrect path for exportMetadataInRocksDBCommand 
(#8941)
bf2f2a7774 is described below

commit bf2f2a77748961ed25e72b69732abe55ab2fd64a
Author: rongtong <jinrongton...@mails.ucas.ac.cn>
AuthorDate: Mon Nov 18 17:25:20 2024 +0800

    Fix incorrect path for exportMetadataInRocksDBCommand (#8941)
---
 .../tools/command/export/ExportMetadataInRocksDBCommand.java       | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/tools/src/main/java/org/apache/rocketmq/tools/command/export/ExportMetadataInRocksDBCommand.java
 
b/tools/src/main/java/org/apache/rocketmq/tools/command/export/ExportMetadataInRocksDBCommand.java
index c466490b8a..d5726985e3 100644
--- 
a/tools/src/main/java/org/apache/rocketmq/tools/command/export/ExportMetadataInRocksDBCommand.java
+++ 
b/tools/src/main/java/org/apache/rocketmq/tools/command/export/ExportMetadataInRocksDBCommand.java
@@ -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")) {

Reply via email to