commit | 07e58be5dbde899aeb0ecddd831538b2de9c7ff3 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Thu Feb 12 09:57:16 2015 -0800 |
committer | Brian O'Connor <bocon@onlab.us> | Fri Feb 13 14:13:58 2015 -0800 |
tree | 5af487d22facc5f3dbd2c5be85c74a1301152835 | |
parent | 5b9dfdc03804003282903084a86d3f826fb718d3 [diff] [blame] |
Fixes for GossipIntentStore * State checking to prevent state updates outrunning. * Copy IntentData on the way in and out of the store. Change-Id: Id18164d15c896c5a62376aac17b7c8c2cac420c2
diff --git a/core/store/dist/src/main/java/org/onosproject/store/impl/EventuallyConsistentMapImpl.java b/core/store/dist/src/main/java/org/onosproject/store/impl/EventuallyConsistentMapImpl.java index 0e6a590..66e85bd 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/impl/EventuallyConsistentMapImpl.java +++ b/core/store/dist/src/main/java/org/onosproject/store/impl/EventuallyConsistentMapImpl.java
@@ -242,11 +242,13 @@ synchronized (this) { Timestamp removed = removedItems.get(key); if (removed != null && removed.compareTo(timestamp) > 0) { + log.debug("ecmap - removed was newer {}", value); return false; } Timestamped<V> existing = items.get(key); if (existing != null && existing.isNewer(timestamp)) { + log.debug("ecmap - existing was newer {}", value); return false; } else { items.put(key, new Timestamped<>(value, timestamp));