You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by su...@apache.org on 2019/07/11 01:49:21 UTC

[incubator-iotdb] branch feature_query_cache updated: modify cache

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

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


The following commit(s) were added to refs/heads/feature_query_cache by this push:
     new f580cbf  modify cache
f580cbf is described below

commit f580cbf76d251987481b193042bbab4822d7dfe0
Author: suyue <23...@qq.com>
AuthorDate: Thu Jul 11 09:48:55 2019 +0800

    modify cache
---
 .../java/org/apache/iotdb/db/engine/cache/DeviceMetaDataCache.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/iotdb/src/main/java/org/apache/iotdb/db/engine/cache/DeviceMetaDataCache.java b/iotdb/src/main/java/org/apache/iotdb/db/engine/cache/DeviceMetaDataCache.java
index a7a8270..55ad98c 100644
--- a/iotdb/src/main/java/org/apache/iotdb/db/engine/cache/DeviceMetaDataCache.java
+++ b/iotdb/src/main/java/org/apache/iotdb/db/engine/cache/DeviceMetaDataCache.java
@@ -62,8 +62,8 @@ public class DeviceMetaDataCache {
    */
   public List<ChunkMetaData> get(String filePath, Path seriesPath)
       throws IOException {
-
-    Object jointPathObject = filePath.intern();
+    String jointPath = filePath+"."+seriesPath.getDevice();
+    Object jointPathObject = jointPath.intern();
     synchronized (lruCache) {
       cacheRequestNum.incrementAndGet();
       if (lruCache.containsKey(filePath) && lruCache.get(filePath).containsKey(seriesPath)) {