You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by zy...@apache.org on 2023/03/20 06:39:23 UTC

[iotdb] 06/13: [IOTDB-5684] Standardize log folder of ConfigNode's Simple consensus protocol (#9353)

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

zyk pushed a commit to branch rc/1.1.0
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 99d5b9e1fa1e30d56a6de5734291e833f0526601
Author: YongzaoDan <33...@users.noreply.github.com>
AuthorDate: Fri Mar 17 00:42:34 2023 +0800

    [IOTDB-5684] Standardize log folder of ConfigNode's Simple consensus protocol (#9353)
---
 .../org/apache/iotdb/confignode/manager/consensus/ConsensusManager.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/confignode/src/main/java/org/apache/iotdb/confignode/manager/consensus/ConsensusManager.java b/confignode/src/main/java/org/apache/iotdb/confignode/manager/consensus/ConsensusManager.java
index e3b4f948e1..b49123c542 100644
--- a/confignode/src/main/java/org/apache/iotdb/confignode/manager/consensus/ConsensusManager.java
+++ b/confignode/src/main/java/org/apache/iotdb/confignode/manager/consensus/ConsensusManager.java
@@ -90,7 +90,7 @@ public class ConsensusManager {
                   ConsensusConfig.newBuilder()
                       .setThisNode(
                           new TEndPoint(CONF.getInternalAddress(), CONF.getConsensusPort()))
-                      .setStorageDir("target" + java.io.File.separator + "simple")
+                      .setStorageDir(CONF.getConsensusDir())
                       .setConsensusGroupType(TConsensusGroupType.ConfigRegion)
                       .build(),
                   gid -> stateMachine)