You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/06/28 11:47:58 UTC

[dubbo] branch 3.0 updated: Perf(MataCacheManager):Remove cache initialization (#10211)

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

albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new bf882c1883 Perf(MataCacheManager):Remove cache initialization (#10211)
bf882c1883 is described below

commit bf882c1883495b572e87e504340f82f4db916025
Author: zhaoyunxing <zh...@apache.org>
AuthorDate: Tue Jun 28 19:47:52 2022 +0800

    Perf(MataCacheManager):Remove cache initialization (#10211)
    
    * Perf(MataCacheManager):Remove cache initialization
    
    * rm un use import
---
 .../apache/dubbo/registry/client/metadata/store/MetaCacheManager.java  | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/store/MetaCacheManager.java b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/store/MetaCacheManager.java
index f060d49fff..ce41e7059c 100644
--- a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/store/MetaCacheManager.java
+++ b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/store/MetaCacheManager.java
@@ -17,7 +17,6 @@
 package org.apache.dubbo.registry.client.metadata.store;
 
 import org.apache.dubbo.common.utils.JsonUtils;
-import org.apache.dubbo.common.utils.LRUCache;
 import org.apache.dubbo.common.utils.StringUtils;
 import org.apache.dubbo.metadata.AbstractCacheManager;
 import org.apache.dubbo.metadata.MetadataInfo;
@@ -54,8 +53,6 @@ public class MetaCacheManager extends AbstractCacheManager<MetadataInfo> {
         String rawMaxFileSize = System.getProperty("dubbo.meta.cache.maxFileSize");
         long maxFileSize = StringUtils.parseLong(rawMaxFileSize);
 
-        cache = new LRUCache<>(entrySize);
-
         init(filePath, fileName, entrySize, maxFileSize, 60, executorService);
     }