Skip to content

Commit 1dd0580

Browse files
authored
fix(server): reinitialize the progress to set up graph auth friendly (#2411)
1 parent de5904a commit 1dd0580

File tree

1 file changed

+5
-0
lines changed
  • hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd

1 file changed

+5
-0
lines changed

hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java

+5
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ private static HugeGraph initGraph(String configPath) throws Exception {
101101
LOG.info("Skip init-store due to the backend store of '{}' " +
102102
"had been initialized", graph.name());
103103
backendStoreInfo.checkVersion();
104+
/*
105+
* Init the required information for creating the admin account
106+
* (when switch from non-auth mode to auth mode)
107+
*/
108+
graph.initSystemInfo();
104109
} else {
105110
initBackend(graph);
106111
}

0 commit comments

Comments
 (0)