Modified get DB object
diff --git a/src/main/java/net/onrc/onos/graph/RamCloudDBConnection.java b/src/main/java/net/onrc/onos/graph/RamCloudDBConnection.java
index 3481eda..6010b31 100644
--- a/src/main/java/net/onrc/onos/graph/RamCloudDBConnection.java
+++ b/src/main/java/net/onrc/onos/graph/RamCloudDBConnection.java
@@ -29,10 +29,10 @@
//graph = new RamCloudGraph(coordinatorURL);
//graph = RamCloudThreadLocal.get();
System.out.println("ThreadId = " + Thread.currentThread().getId() + "graph = " + graph);
- //if (graph == null) {
+ if (graph == null) {
graph = new RamCloudGraph("fast+udp:host=10.128.4.104,port=12246");
- // RamCloudThreadLocal.set(graph);
- //}
+ RamCloudThreadLocal.set(graph);
+ }
}
@Override