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 2021/11/01 08:22:57 UTC
[iotdb] branch new_vector updated: Fix check path
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch new_vector
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/new_vector by this push:
new 6678c4a Fix check path
6678c4a is described below
commit 6678c4a1be953a1f363e1d67cdf0f49643ba1a2d
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Nov 1 16:22:23 2021 +0800
Fix check path
---
.../main/java/org/apache/iotdb/db/metadata/path/MeasurementPath.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/metadata/path/MeasurementPath.java b/server/src/main/java/org/apache/iotdb/db/metadata/path/MeasurementPath.java
index 512a625..bd6d129 100644
--- a/server/src/main/java/org/apache/iotdb/db/metadata/path/MeasurementPath.java
+++ b/server/src/main/java/org/apache/iotdb/db/metadata/path/MeasurementPath.java
@@ -153,8 +153,8 @@ public class MeasurementPath extends PartialPath {
Map<String, Map<String, IWritableMemChunk>> memTableMap, List<TimeRange> deletionList)
throws QueryProcessException, IOException {
// check If Memtable Contains this path
- if (memTableMap.containsKey(getDevice())
- && memTableMap.get(getDevice()).containsKey(getMeasurement())) {
+ if (!memTableMap.containsKey(getDevice())
+ || !memTableMap.get(getDevice()).containsKey(getMeasurement())) {
return null;
}
IWritableMemChunk memChunk = memTableMap.get(getDevice()).get(getMeasurement());