-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
close tx in vertex/edge query rest api #1038
Conversation
Change-Id: Ic5bccf464dd40a972026663790555eef5e47ceb6
Codecov Report
@@ Coverage Diff @@
## master #1038 +/- ##
============================================
+ Coverage 60.42% 69.13% +8.70%
- Complexity 4580 5422 +842
============================================
Files 329 329
Lines 26370 26372 +2
Branches 3757 3757
============================================
+ Hits 15933 18231 +2298
+ Misses 8710 6360 -2350
- Partials 1727 1781 +54 Continue to review full report at Codecov.
|
@@ -342,7 +345,9 @@ public String get(@Context GraphManager manager, | |||
HugeGraph g = graph(manager, graph); | |||
Iterator<Edge> edges = g.edges(id); | |||
checkExist(edges, HugeType.EDGE, id); | |||
return manager.serializer(g).writeEdge(edges.next()); | |||
String result = manager.serializer(g).writeEdge(edges.next()); | |||
g.tx().close(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use try-finally
Change-Id: Ibaf9cd54742f374bcdd6a1beb0a3c273d9e11fb6
Change-Id: Ic5bccf464dd40a972026663790555eef5e47ceb6