commit | 9bd1f15b03411f0758869fe8de68a0e54e52faa2 | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan@onlab.us> | Thu Apr 30 23:33:35 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri May 01 14:23:57 2015 +0000 |
tree | 1436771d4cce0996c86e2635d1c0f2397a1165fc | |
parent | 0fa4bc413e8c9bf1d852d50a33a15041ba3515d3 [diff] [blame] |
ONOS-1798: More appropriate method name + better pre-condition checks Change-Id: I5d277967c22b9db48097288ea072cbc4d1c5a2a8
diff --git a/core/api/src/main/java/org/onosproject/cluster/LeadershipService.java b/core/api/src/main/java/org/onosproject/cluster/LeadershipService.java index c228d32..9b94056 100644 --- a/core/api/src/main/java/org/onosproject/cluster/LeadershipService.java +++ b/core/api/src/main/java/org/onosproject/cluster/LeadershipService.java
@@ -74,7 +74,8 @@ * potentially become the leader again if and when it becomes the highest * priority candidate * <p> - * If the local nodeId is not the leader, this method will be a noop. + * If the local nodeId is not the leader, this method will make no changes and + * simply return false. * * @param path topic for which this controller node should give up leadership * @return true if this node stepped down from leadership, false otherwise