Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Madan Jampani
2015-06-04 15:18:43 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0be32ac06871d4acc47b32bde4b1585c4b740920
0be32ac0
1 parent
adba1521
Bug fix: Use right nodeId
Change-Id: I87270466fec487a3b0496f75865b1e2a2df32f8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
core/store/dist/src/main/java/org/onosproject/store/mastership/impl/ConsistentDeviceMastershipStore.java
core/store/dist/src/main/java/org/onosproject/store/mastership/impl/ConsistentDeviceMastershipStore.java
View file @
0be32ac
...
...
@@ -182,7 +182,7 @@ public class ConsistentDeviceMastershipStore
String
leadershipTopic
=
createDeviceMastershipTopic
(
deviceId
);
NodeId
leader
=
leadershipService
.
getLeader
(
leadershipTopic
);
if
(
Objects
.
equal
(
localN
odeId
,
leader
))
{
if
(
Objects
.
equal
(
n
odeId
,
leader
))
{
return
MastershipRole
.
MASTER
;
}
return
leadershipService
.
getCandidates
(
leadershipTopic
).
contains
(
nodeId
)
?
...
...
Please
register
or
login
to post a comment