Skip to content

Commit 91b5d76

Browse files
author
a-brandt
committed
added missing setRequestId
1 parent d0781e6 commit 91b5d76

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main/java/com/arangodb/impl/InternalGraphDriverImpl.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ public GraphEntity createGraph(
7878
final List<String> orphanCollections,
7979
final Boolean waitForSync) throws ArangoException {
8080

81-
final HttpResponseEntity response = httpManager.doPost(createGharialEndpointUrl(databaseName),
82-
new MapBuilder().put(WAIT_FOR_SYNC, waitForSync).get(),
83-
EntityFactory.toJsonString(new MapBuilder().put("name", graphName).put("edgeDefinitions", edgeDefinitions)
84-
.put("orphanCollections", orphanCollections).get()));
81+
final HttpResponseEntity response = httpManager
82+
.doPost(createGharialEndpointUrl(databaseName), new MapBuilder().put(WAIT_FOR_SYNC, waitForSync).get(),
83+
EntityFactory.toJsonString(
84+
new MapBuilder().put("name", graphName).put("edgeDefinitions", edgeDefinitions)
85+
.put("orphanCollections", orphanCollections).get()));
8586
return createEntity(response, GraphEntity.class);
8687
}
8788

@@ -388,6 +389,7 @@ public <T> VertexEntity<T> createVertex(
388389
if (isInBatchMode()) {
389390
result = new VertexEntity<T>();
390391
result.setEntity(vertex);
392+
result.setRequestId(res.getRequestId());
391393
} else {
392394
if (vertex != null) {
393395
result = createEntity(res, VertexEntity.class, vertex.getClass());

0 commit comments

Comments
 (0)