Skip to content
This repository
Browse code

Fixed problem creating key indices on a readonly graph.

  • Loading branch information...
commit cdd5bfee82b9128cec26da1b6aab6931da43665d 1 parent 44751a0
stephen mallette spmallette authored
2  rexster-server/src/main/java/com/tinkerpop/rexster/IndexResource.java
@@ -576,7 +576,7 @@ private static JSONObject createJSONObject(final Index index) {
576 576
577 577 private Index getIndexFromGraph(final String graphName, final String name) {
578 578
579   - final Graph graph = this.getRexsterApplicationGraph(graphName).getGraph();
  579 + final Graph graph = this.getRexsterApplicationGraph(graphName).getUnwrappedGraph();
580 580 final IndexableGraph idxGraph = graph instanceof IndexableGraph ? (IndexableGraph) graph : null;
581 581
582 582 if (idxGraph == null) {
2  rexster-server/src/main/java/com/tinkerpop/rexster/KeyIndexResource.java
@@ -212,7 +212,7 @@ public Response postIndexKey(@PathParam("graphname") final String graphName, @Pa
212 212
213 213 private KeyIndexableGraph getKeyIndexableGraph(final String graphName) {
214 214
215   - final Graph graph = this.getRexsterApplicationGraph(graphName).getGraph();
  215 + final Graph graph = this.getRexsterApplicationGraph(graphName).getUnwrappedGraph();
216 216 final KeyIndexableGraph idxGraph = graph instanceof KeyIndexableGraph ? (KeyIndexableGraph) graph : null;
217 217
218 218 if (idxGraph == null) {

0 comments on commit cdd5bfe

Please sign in to comment.
Something went wrong with that request. Please try again.