You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ta...@apache.org on 2023/03/16 16:42:41 UTC

[iotdb] branch rel/1.1 updated: [IOTDB-5684] Standardize log folder of ConfigNode's Simple consensus protocol (#9353)

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

tanxinyu pushed a commit to branch rel/1.1
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/1.1 by this push:
     new 6102772855 [IOTDB-5684] Standardize log folder of ConfigNode's Simple consensus protocol (#9353)
6102772855 is described below

commit 6102772855000aa830e73ab75e2b6a441bdbf033
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)