You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2020/04/21 08:11:36 UTC

[incubator-iotdb] branch fix_mlog created (now 6ea5fcf)

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

haonan pushed a change to branch fix_mlog
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git.


      at 6ea5fcf  fix mlog

This branch includes the following new commits:

     new 6ea5fcf  fix mlog

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.



[incubator-iotdb] 01/01: fix mlog

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

haonan pushed a commit to branch fix_mlog
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit 6ea5fcf29f08de0c4fd46a8233ab3eea7cb8ff00
Author: HTHou <hh...@outlook.com>
AuthorDate: Tue Apr 21 16:10:48 2020 +0800

    fix mlog
---
 server/src/main/java/org/apache/iotdb/db/metadata/MManager.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/metadata/MManager.java b/server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
index 80db035..110e3d2 100644
--- a/server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
+++ b/server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
@@ -82,7 +82,7 @@ public class MManager {
   // tag key -> tag value -> LeafMNode
   private Map<String, Map<String, Set<LeafMNode>>> tagIndex = new HashMap<>();
 
-  private Map<String, Integer> seriesNumberInStorageGroups;
+  private Map<String, Integer> seriesNumberInStorageGroups = new HashMap<>();
   private long maxSeriesNumberAmongStorageGroup;
   private boolean initialized;
   private IoTDBConfig config;
@@ -142,7 +142,6 @@ public class MManager {
 
     try {
       tagLogFile = new TagLogFile(config.getSchemaDir(), MetadataConstant.TAG_LOG);
-      initFromLog(logFile);
 
       if (config.isEnableParameterAdapter()) {
         // storage group name -> the series number
@@ -223,7 +222,7 @@ public class MManager {
 
   public void operation(String cmd) throws IOException, MetadataException {
     //see createTimeseries() to get the detailed format of the cmd
-    String[] args = cmd.trim().split(",");
+    String[] args = cmd.trim().split(",", -1);
     switch (args[0]) {
       case MetadataOperationType.CREATE_TIMESERIES:
         Map<String, String> props = new HashMap<>();