From 28fc1d390f33e97d720595f9ae247a763c6f90e0 Mon Sep 17 00:00:00 2001 From: Tomas Olvecky Date: Fri, 29 Nov 2013 15:16:25 +0100 Subject: [PATCH] Fix bug in persister causing to persist last configuration in a loop. Change-Id: Ie2c35d5bb4aba19783b4c37d250e575fae2c50cc Signed-off-by: Tomas Olvecky --- .../netconf/persist/impl/ConfigPersisterNotificationHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPersisterNotificationHandler.java b/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPersisterNotificationHandler.java index a777ea4099..ac6b5b28fd 100644 --- a/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPersisterNotificationHandler.java +++ b/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPersisterNotificationHandler.java @@ -109,6 +109,7 @@ public class ConfigPersisterNotificationHandler implements NotificationListener, logger.trace("Pushing following xml to netconf {}", configSnapshot); try { pushLastConfig(XmlUtil.readXmlToElement(configSnapshot)); + return; } catch(ConflictingVersionException e) { closeClientAndDispatcher(netconfClient, netconfClientDispatcher); lastException = e; -- 2.36.6