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-10-15 23:28:20 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0264907578923efc773b8fcb2237c98f4e5a45c7
02649075
1 parent
b35a3819
avoid extra Map lookup
Change-Id: Iae39b6035686cf1a1b938a26df44ba7386cd9e52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
core/store/dist/src/main/java/org/onlab/onos/store/device/impl/GossipDeviceStore.java
core/store/dist/src/main/java/org/onlab/onos/store/device/impl/GossipDeviceStore.java
View file @
0264907
...
...
@@ -515,12 +515,12 @@ public class GossipDeviceStore
Map
<
PortNumber
,
Port
>
ports
,
Set
<
PortNumber
>
processed
)
{
List
<
DeviceEvent
>
events
=
new
ArrayList
<>();
Iterator
<
PortNumber
>
iterator
=
ports
.
ke
ySet
().
iterator
();
Iterator
<
Entry
<
PortNumber
,
Port
>>
iterator
=
ports
.
entr
ySet
().
iterator
();
while
(
iterator
.
hasNext
())
{
PortNumber
portNumber
=
iterator
.
next
();
Entry
<
PortNumber
,
Port
>
e
=
iterator
.
next
();
PortNumber
portNumber
=
e
.
getKey
();
if
(!
processed
.
contains
(
portNumber
))
{
events
.
add
(
new
DeviceEvent
(
PORT_REMOVED
,
device
,
ports
.
get
(
portNumber
)));
events
.
add
(
new
DeviceEvent
(
PORT_REMOVED
,
device
,
e
.
getValue
()));
iterator
.
remove
();
}
}
...
...
Please
register
or
login
to post a comment