Madan Jampani
Committed by Gerrit Code Review

Moving Dist flow rule store backup mechanism to use EC Map

Change-Id: I465cc2424004721bf09505ac9cde068884f04940
...@@ -22,7 +22,7 @@ import org.onosproject.net.DeviceId; ...@@ -22,7 +22,7 @@ import org.onosproject.net.DeviceId;
22 import org.slf4j.Logger; 22 import org.slf4j.Logger;
23 23
24 public class DefaultFlowEntry extends DefaultFlowRule 24 public class DefaultFlowEntry extends DefaultFlowRule
25 - implements FlowEntry, StoredFlowEntry { 25 + implements StoredFlowEntry {
26 26
27 private static final Logger log = getLogger(DefaultFlowEntry.class); 27 private static final Logger log = getLogger(DefaultFlowEntry.class);
28 28
......
...@@ -357,6 +357,10 @@ public class EventuallyConsistentMapImpl<K, V> ...@@ -357,6 +357,10 @@ public class EventuallyConsistentMapImpl<K, V>
357 } 357 }
358 358
359 private boolean removeInternal(K key, Timestamp timestamp) { 359 private boolean removeInternal(K key, Timestamp timestamp) {
360 + if (timestamp == null) {
361 + return false;
362 + }
363 +
360 counter.incrementCount(); 364 counter.incrementCount();
361 final MutableBoolean updated = new MutableBoolean(false); 365 final MutableBoolean updated = new MutableBoolean(false);
362 366
......