Skip to content

Commit

Permalink
chore: init meta server in ctor of StandardHugeGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
VGalaxies committed Sep 14, 2023
1 parent c38b67c commit e33a510
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ public StandardHugeGraph(HugeConfig config) {
throw new HugeException(message, e);
}

if (isHstore()) {
initMetaManager();
}

try {
this.tx = new TinkerPopTransaction(this);
boolean supportsPersistence = this.backendStoreFeatures().supportsPersistence();
Expand Down Expand Up @@ -472,7 +476,6 @@ private ISchemaTransaction openSchemaTransaction() throws HugeException {
this.checkGraphNotClosed();
try {
if (isHstore()) {
initMetaManager();
return new CachedSchemaTransactionV2(
MetaManager.instance().metaDriver(),
MetaManager.instance().cluster(), this.params);
Expand Down

0 comments on commit e33a510

Please sign in to comment.