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
2016-05-11 10:34:18 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a75fec47a1e21e852c38e738858441f790d3007b
a75fec47
1 parent
c3824e8f
Fix for ONOS-4429
Change-Id: I41b56244b2d991eb68cded6e3b15cdc67ef7fa39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/EventuallyConsistentMapImpl.java
core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/EventuallyConsistentMapImpl.java
View file @
a75fec4
...
...
@@ -339,11 +339,8 @@ public class EventuallyConsistentMapImpl<K, V>
checkNotNull
(
value
,
ERROR_NULL_VALUE
);
MapValue
<
V
>
newValue
=
new
MapValue
<>(
value
,
timestampProvider
.
apply
(
key
,
value
));
// Before mutating local map, ensure the update can be serialized without errors.
// This prevents replica divergence due to serialization failures.
UpdateEntry
<
K
,
V
>
update
=
serializer
.
copy
(
new
UpdateEntry
<
K
,
V
>(
key
,
newValue
));
if
(
putInternal
(
key
,
newValue
))
{
notifyPeers
(
update
,
peerUpdateFunction
.
apply
(
key
,
value
));
notifyPeers
(
new
UpdateEntry
<
K
,
V
>(
key
,
newValue
)
,
peerUpdateFunction
.
apply
(
key
,
value
));
notifyListeners
(
new
EventuallyConsistentMapEvent
<>(
mapName
,
PUT
,
key
,
value
));
}
}
...
...
Please
register
or
login
to post a comment