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 2023/04/25 09:06:25 UTC

[iotdb] branch fast_write_test_with_guoneng_lc updated: fix compile

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

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


The following commit(s) were added to refs/heads/fast_write_test_with_guoneng_lc by this push:
     new afc83e364b fix compile
afc83e364b is described below

commit afc83e364b7f2f6fdb5ee292db6842c6d5c69c17
Author: HTHou <hh...@outlook.com>
AuthorDate: Tue Apr 25 17:01:50 2023 +0800

    fix compile
---
 .../apache/iotdb/db/mpp/plan/analyze/schema/ClusterSchemaFetcher.java | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/schema/ClusterSchemaFetcher.java b/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/schema/ClusterSchemaFetcher.java
index 8b740a398f..9f8d9eefc6 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/schema/ClusterSchemaFetcher.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/schema/ClusterSchemaFetcher.java
@@ -321,7 +321,6 @@ public class ClusterSchemaFetcher implements ISchemaFetcher {
     // The schema cache R/W and fetch operation must be locked together thus the cache clean
     // operation executed by delete timeseries will be effective.
     schemaCache.takeReadLock();
-    templateSchemaCache.takeReadLock();
     try {
       List<ISchemaComputationWithAutoCreation> templateTimeSeriesRequestList = new ArrayList<>();
       List<Pair<Template, PartialPath>> templateSetInfoList = new ArrayList<>();
@@ -349,7 +348,6 @@ public class ClusterSchemaFetcher implements ISchemaFetcher {
       }
     } finally {
       schemaCache.releaseReadLock();
-      templateSchemaCache.releaseReadLock();
     }
   }
 
@@ -357,7 +355,6 @@ public class ClusterSchemaFetcher implements ISchemaFetcher {
   public void fetchAndComputeSchemaWithAutoCreateForFastWrite(
       ISchemaComputationWithAutoCreation schemaComputationWithAutoCreation) {
     schemaCache.takeReadLock();
-    templateSchemaCache.takeReadLock();
     try {
 
       Pair<Template, PartialPath> templateSetInfo =
@@ -389,7 +386,6 @@ public class ClusterSchemaFetcher implements ISchemaFetcher {
       }
     } finally {
       schemaCache.releaseReadLock();
-      templateSchemaCache.releaseReadLock();
     }
   }