Removed unhelpful for() loop when trying to commit to the database.
diff --git a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowManager.java b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowManager.java
index b4afe3f..98f9cce 100644
--- a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowManager.java
+++ b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowManager.java
@@ -1025,18 +1025,11 @@
}
}
// Try to commit to the database
- for (int i = 0; i < 3; i++) {
- try {
- dbHandlerInner.commit();
- break;
- } catch (Exception e) {
- log.debug("Exception during commit of Flow Entries to Network MAP", e);
- try {
- Thread.sleep(10);
- } catch (InterruptedException e2) {
- e2.printStackTrace();
- }
- }
+ try {
+ dbHandlerInner.commit();
+ } catch (Exception e) {
+ log.debug("Exception during commit of Flow Entries to Network MAP", e);
+ dbHandlerInner.rollback();
}
}
}