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

vaughn pushed a commit to branch zy_dev
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git

commit b4b15309f55ed18c3d7849e7eac5f2f78ff5dcd1
Author: vaughn <[email protected]>
AuthorDate: Sun Dec 18 23:49:32 2022 +0800

    chore: don't support persistence for memory backend
---
 .../src/main/java/org/apache/hugegraph/StandardHugeGraph.java          | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/hugegraph-core/src/main/java/org/apache/hugegraph/StandardHugeGraph.java 
b/hugegraph-core/src/main/java/org/apache/hugegraph/StandardHugeGraph.java
index 22504c267..e7039ba41 100644
--- a/hugegraph-core/src/main/java/org/apache/hugegraph/StandardHugeGraph.java
+++ b/hugegraph-core/src/main/java/org/apache/hugegraph/StandardHugeGraph.java
@@ -193,7 +193,8 @@ public class StandardHugeGraph implements HugeGraph {
 
         this.taskManager = TaskManager.instance();
 
-        this.features = new HugeFeatures(this, true);
+        boolean supportsPersistence = 
this.backendStoreFeatures().supportsPersistence();
+        this.features = new HugeFeatures(this, supportsPersistence);
 
         this.name = config.get(CoreOptions.STORE);
         this.started = false;

Reply via email to