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

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


The following commit(s) were added to refs/heads/master by this push:
     new 1dd0580d3 fix(server): reinitialize the progress to set up graph auth 
friendly (#2411)
1dd0580d3 is described below

commit 1dd0580d3053b7c82e5b5858705a81f25977f407
Author: Z-HUANT <[email protected]>
AuthorDate: Wed Jan 17 20:56:25 2024 +0800

    fix(server): reinitialize the progress to set up graph auth friendly (#2411)
---
 .../src/main/java/org/apache/hugegraph/cmd/InitStore.java            | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java
 
b/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java
index a18ae6333..eabca7fd6 100644
--- 
a/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java
+++ 
b/hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java
@@ -101,6 +101,11 @@ public class InitStore {
                 LOG.info("Skip init-store due to the backend store of '{}' " +
                          "had been initialized", graph.name());
                 backendStoreInfo.checkVersion();
+                /*
+                 * Init the required information for creating the admin account
+                 * (when switch from non-auth mode to auth mode)
+                 */
+                graph.initSystemInfo();
             } else {
                 initBackend(graph);
             }

Reply via email to