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
Yuta HIGUCHI
2014-11-03 14:36:39 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
780b138a52d6bdc5b981cfa3b8cc8d24b9fcb419
780b138a
1 parent
1bd9ccf5
minor bug fix
Change-Id: Icfe2f2b5cfefa6fc8a7e55ceb86a6785e57f04b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
core/store/dist/src/main/java/org/onlab/onos/store/mastership/impl/DistributedMastershipStore.java
core/store/dist/src/main/java/org/onlab/onos/store/mastership/impl/DistributedMastershipStore.java
View file @
780b138
...
...
@@ -447,7 +447,13 @@ implements MastershipStore {
RoleValue
oldValue
=
event
.
getOldValue
();
RoleValue
newValue
=
event
.
getValue
();
if
(
Objects
.
equal
(
oldValue
.
get
(
MASTER
),
newValue
.
get
(
MASTER
)))
{
NodeId
oldMaster
=
null
;
if
(
oldValue
!=
null
)
{
oldMaster
=
oldValue
.
get
(
MASTER
);
}
NodeId
newMaster
=
newValue
.
get
(
MASTER
);
if
(
Objects
.
equal
(
oldMaster
,
newMaster
))
{
notifyDelegate
(
new
MastershipEvent
(
MASTER_CHANGED
,
event
.
getKey
(),
event
.
getValue
().
roleInfo
()));
}
else
{
...
...
Please
register
or
login
to post a comment