Skip to content

Commit

Permalink
fix(server): avoid overriding backend config in gremlin example script (
Browse files Browse the repository at this point in the history
  • Loading branch information
VGalaxies authored Apr 14, 2024
1 parent 3783247 commit 6be7569
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ if [[ $PRELOAD == "true" ]]; then
cp "${CONF}"/gremlin-server.yaml "${CONF}/${GREMLIN_SERVER_CONF}"
cp "${SCRIPTS}"/example.groovy "${SCRIPTS}/${EXAMPLE_SCRIPT}"
sed -i -e "s/empty-sample.groovy/$EXAMPLE_SCRIPT/g" "${CONF}/${GREMLIN_SERVER_CONF}"
sed -i -e '/registerRocksDB/d; /serverStarted/d' "${SCRIPTS}/${EXAMPLE_SCRIPT}"
sed -i -e '/registerBackends/d; /serverStarted/d' "${SCRIPTS}/${EXAMPLE_SCRIPT}"
fi

# TODO: show the output message in hugegraph-server.sh when start the server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ import org.apache.tinkerpop.gremlin.structure.T

RegisterUtil.registerBackends()

conf = HugeFactory.getLocalConfig("conf/graphs/hugegraph.properties")
conf.setProperty("backend", "memory")
conf.setProperty("serializer", "text")
conf = "conf/graphs/hugegraph.properties"
graph = HugeFactory.open(conf)
graph.serverStarted(GlobalMasterInfo.master("server-tinkerpop"))
schema = graph.schema()
Expand Down

0 comments on commit 6be7569

Please sign in to comment.