This is an automated email from the ASF dual-hosted git repository.
vgalaxies pushed a commit to branch pd-store
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
The following commit(s) were added to refs/heads/pd-store by this push:
new 01760e5af fix(server): make CacheManager constructor private to
satisfy the singleton pattern (#2432)
01760e5af is described below
commit 01760e5afa3ae504c172cccc075f56bf7b3f4f1e
Author: Peng Junzhi <[email protected]>
AuthorDate: Thu Feb 1 09:58:44 2024 -0600
fix(server): make CacheManager constructor private to satisfy the singleton
pattern (#2432)
---
.../src/main/java/org/apache/hugegraph/backend/cache/CacheManager.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CacheManager.java
b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CacheManager.java
index dd1b4f9b5..afe540d2f 100644
---
a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CacheManager.java
+++
b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CacheManager.java
@@ -56,7 +56,7 @@ public class CacheManager {
return cache.enableMetrics(enabled);
}
- public CacheManager() {
+ private CacheManager() {
this.caches = new ConcurrentHashMap<>();
this.timer = new Timer("cache-expirer", true);