Commit 46667712 by TJBChris

Fixed a counter bug in the recursive search logic.

parent f5eef505
...@@ -187,6 +187,7 @@ public class MetadataDiscoveryResource { ...@@ -187,6 +187,7 @@ public class MetadataDiscoveryResource {
private void searchWalker (Vertex vtx, final int max, int counter, HashMap<String,Map<String,String>> e, HashMap<String,Map<String,String>> v) { private void searchWalker (Vertex vtx, final int max, int counter, HashMap<String,Map<String,String>> e, HashMap<String,Map<String,String>> v) {
counter++;
if (counter <= max) { if (counter <= max) {
Map<String,String> jsonVertexMap = new HashMap<String,String>(); Map<String,String> jsonVertexMap = new HashMap<String,String>();
...@@ -230,7 +231,6 @@ public class MetadataDiscoveryResource { ...@@ -230,7 +231,6 @@ public class MetadataDiscoveryResource {
e.put(edge.getId().toString(), jsonEdgeMap); e.put(edge.getId().toString(), jsonEdgeMap);
counter++;
searchWalker (edge.getVertex(d), max, counter, e, v); searchWalker (edge.getVertex(d), max, counter, e, v);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment