BUG-981: Fixed incorrect condition in 43/7043/2
authorRobert Varga <rovarga@cisco.com>
Tue, 13 May 2014 11:52:10 +0000 (13:52 +0200)
committerEd Warnicke <eaw@cisco.com>
Thu, 15 May 2014 20:38:05 +0000 (15:38 -0500)
commit69101d79c57eeb3e84190009598790f71e460b98
tree8e39d71b8ccaedf4461ea1839795dbd81359f128
parent6ae15515ef1883c1c6a7354e87f912d2eacb82a2
BUG-981: Fixed incorrect condition in
ResolveDataChangeEventsTask

When we insert a new subtree, we need to make sure to call serialization
on the entire, such that any new elements which appear have their
classed attached to paths.

This reuses a previous code path, which pruned the walk tree as soon as
it encountered a node which did not have any listeners attached (thus
improving performance when we're gathering listeners).

In this specific case, though, this check is not correct: we need to
walk the path because it may be placing new data in the subtree.

At the same time add debug statements which made pinpointing this
problem possible.

Change-Id: I1687ba45817a84ea4a888496a90defc5896216c9
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/ResolveDataChangeEventsTask.java