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/11/20 03:27:36 UTC
[iotdb] branch master updated: Correct formatting debugging
information in Manager (#2085)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new c6b0fe5 Correct formatting debugging information in Manager (#2085)
c6b0fe5 is described below
commit c6b0fe55983e889d6cfcad3293d4978d7be17230
Author: Benedict Jin <as...@apache.org>
AuthorDate: Fri Nov 20 11:27:13 2020 +0800
Correct formatting debugging information in Manager (#2085)
---
.../org/apache/iotdb/db/metadata/MManager.java | 44 ++++++++--------------
1 file changed, 16 insertions(+), 28 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 a76510d..d349f21 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
@@ -1227,9 +1227,8 @@ public class MManager {
if (tagIndex.containsKey(key) && tagIndex.get(key).containsKey(beforeValue)) {
if (logger.isDebugEnabled()) {
logger.debug(String.format(
- DEBUG_MSG, "Upsert"
- + TAG_FORMAT,
- leafMNode.getFullPath(), key, beforeValue, leafMNode.getOffset()));
+ String.format(DEBUG_MSG, "Upsert" + TAG_FORMAT, leafMNode.getFullPath()),
+ key, beforeValue, leafMNode.getOffset()));
}
tagIndex.get(key).get(beforeValue).remove(leafMNode);
@@ -1239,10 +1238,8 @@ public class MManager {
} else {
if (logger.isDebugEnabled()) {
logger.debug(String.format(
- DEBUG_MSG_1, "Upsert"
- + PREVIOUS_CONDITION,
- leafMNode.getFullPath(), key, beforeValue, leafMNode.getOffset(),
- tagIndex.containsKey(key)));
+ String.format(DEBUG_MSG_1, "Upsert" + PREVIOUS_CONDITION, leafMNode.getFullPath()),
+ key, beforeValue, leafMNode.getOffset(), tagIndex.containsKey(key)));
}
}
}
@@ -1389,9 +1386,8 @@ public class MManager {
if (tagIndex.containsKey(key) && tagIndex.get(key).containsKey(value)) {
if (logger.isDebugEnabled()) {
logger.debug(String.format(
- DEBUG_MSG, "Drop"
- + TAG_FORMAT,
- leafMNode.getFullPath(), entry.getKey(), entry.getValue(), leafMNode.getOffset()));
+ String.format(DEBUG_MSG, "Drop" + TAG_FORMAT, leafMNode.getFullPath()),
+ entry.getKey(), entry.getValue(), leafMNode.getOffset()));
}
tagIndex.get(key).get(value).remove(leafMNode);
@@ -1404,10 +1400,8 @@ public class MManager {
} else {
if (logger.isDebugEnabled()) {
logger.debug(String.format(
- DEBUG_MSG_1, "Drop"
- + PREVIOUS_CONDITION,
- leafMNode.getFullPath(), key, value, leafMNode.getOffset(),
- tagIndex.containsKey(key)));
+ String.format(DEBUG_MSG_1, "Drop" + PREVIOUS_CONDITION, leafMNode.getFullPath()),
+ key, value, leafMNode.getOffset(), tagIndex.containsKey(key)));
}
}
@@ -1468,19 +1462,16 @@ public class MManager {
if (logger.isDebugEnabled()) {
logger.debug(String.format(
- DEBUG_MSG, "Set"
- + TAG_FORMAT,
- leafMNode.getFullPath(), entry.getKey(), beforeValue, leafMNode.getOffset()));
+ String.format(DEBUG_MSG, "Set" + TAG_FORMAT, leafMNode.getFullPath()),
+ entry.getKey(), beforeValue, leafMNode.getOffset()));
}
tagIndex.get(key).get(beforeValue).remove(leafMNode);
} else {
if (logger.isDebugEnabled()) {
logger.debug(String.format(
- DEBUG_MSG_1, "Set"
- + PREVIOUS_CONDITION,
- leafMNode.getFullPath(), key, beforeValue, leafMNode.getOffset(),
- tagIndex.containsKey(key)));
+ String.format(DEBUG_MSG_1, "Set" + PREVIOUS_CONDITION, leafMNode.getFullPath()),
+ key, beforeValue, leafMNode.getOffset(), tagIndex.containsKey(key)));
}
}
tagIndex.computeIfAbsent(key, k -> new ConcurrentHashMap<>())
@@ -1529,9 +1520,8 @@ public class MManager {
if (logger.isDebugEnabled()) {
logger.debug(String.format(
- DEBUG_MSG, "Rename"
- + TAG_FORMAT,
- leafMNode.getFullPath(), oldKey, value, leafMNode.getOffset()));
+ String.format(DEBUG_MSG, "Rename" + TAG_FORMAT, leafMNode.getFullPath()),
+ oldKey, value, leafMNode.getOffset()));
}
tagIndex.get(oldKey).get(value).remove(leafMNode);
@@ -1539,10 +1529,8 @@ public class MManager {
} else {
if (logger.isDebugEnabled()) {
logger.debug(String.format(
- DEBUG_MSG_1, "Rename"
- + PREVIOUS_CONDITION,
- leafMNode.getFullPath(), oldKey, value, leafMNode.getOffset(),
- tagIndex.containsKey(oldKey)));
+ String.format(DEBUG_MSG_1, "Rename" + PREVIOUS_CONDITION, leafMNode.getFullPath()),
+ oldKey, value, leafMNode.getOffset(), tagIndex.containsKey(oldKey)));
}
}
tagIndex.computeIfAbsent(newKey, k -> new ConcurrentHashMap<>())