commit | a88efa496c11d550262a2be0e41dd63cda0aabae | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan@onlab.us> | Wed Mar 04 10:45:04 2015 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Mar 04 18:48:23 2015 +0000 |
tree | 18db86674ded477677d574d2510c6deed4fdff1a | |
parent | fa2fa93ff80cfcdf5d8d159d9ec8ab198be2e844 [diff] |
Fix for ONOS-1218 Change-Id: Ica7a5c251d63c301b40b9ef2c95450c0194798cf
diff --git a/core/store/dist/src/main/java/org/onosproject/store/intent/impl/PartitionManager.java b/core/store/dist/src/main/java/org/onosproject/store/intent/impl/PartitionManager.java index e2e6322..07b89fb 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/intent/impl/PartitionManager.java +++ b/core/store/dist/src/main/java/org/onosproject/store/intent/impl/PartitionManager.java
@@ -109,8 +109,8 @@ @Override public boolean isMine(Key intentKey) { - return leadershipService.getLeader(getPartitionPath(getPartitionForKey(intentKey))) - .equals(clusterService.getLocalNode().id()); + return Objects.equal(leadershipService.getLeader(getPartitionPath(getPartitionForKey(intentKey))), + clusterService.getLocalNode().id()); } private void doRelinquish() {