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

[iotdb] branch b54a3ef1361ce created (now cb876cee17)

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

yongzao pushed a change to branch b54a3ef1361ce
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at cb876cee17 [IOTDB-5684] Standardize log folder of ConfigNode's Simple consensus protocol

This branch includes the following new commits:

     new cb876cee17 [IOTDB-5684] Standardize log folder of ConfigNode's Simple consensus protocol

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: [IOTDB-5684] Standardize log folder of ConfigNode's Simple consensus protocol

Posted by yo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

yongzao pushed a commit to branch b54a3ef1361ce
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit cb876cee17d56f0f6236664748339e29b7fb7e68
Author: YongzaoDan <33...@users.noreply.github.com>
AuthorDate: Thu Mar 16 20:37:03 2023 +0800

    [IOTDB-5684] Standardize log folder of ConfigNode's Simple consensus protocol
---
 .../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)