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 12ff9154a fix(server): reinitialize the progress to set up graph auth 
friendly (#2411)
12ff9154a is described below

commit 12ff9154ab6c5734abc1bf2aa8b6d7c8d0da3085
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