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

zyk 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 3ca4f8fa13 Fix device alignment check during data insertion (#9079)
3ca4f8fa13 is described below

commit 3ca4f8fa1330d437706dff16e2e07370dbdd6bfa
Author: Marcos_Zyk <[email protected]>
AuthorDate: Thu Feb 16 17:57:46 2023 +0800

    Fix device alignment check during data insertion (#9079)
---
 .../java/org/apache/iotdb/db/metadata/cache/DataNodeSchemaCache.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/server/src/main/java/org/apache/iotdb/db/metadata/cache/DataNodeSchemaCache.java
 
b/server/src/main/java/org/apache/iotdb/db/metadata/cache/DataNodeSchemaCache.java
index c0004d3f31..9547ddab02 100644
--- 
a/server/src/main/java/org/apache/iotdb/db/metadata/cache/DataNodeSchemaCache.java
+++ 
b/server/src/main/java/org/apache/iotdb/db/metadata/cache/DataNodeSchemaCache.java
@@ -160,7 +160,7 @@ public class DataNodeSchemaCache {
 
   public List<Integer> compute(ISchemaComputation schemaComputation) {
     List<Integer> indexOfMissingMeasurements = new ArrayList<>();
-    final AtomicBoolean isFirstMeasurement = new AtomicBoolean();
+    final AtomicBoolean isFirstMeasurement = new AtomicBoolean(true);
     dualKeyCache.compute(
         new IDualKeyCacheComputation<PartialPath, String, SchemaCacheEntry>() {
           @Override

Reply via email to