From: Andrej Záň Date: Mon, 10 Apr 2017 17:10:43 +0000 (+0200) Subject: Fix wrong call to delete instead of write. X-Git-Tag: release/carbon~37 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=84e49d3fe39b713366e13f6b67c5d7b860568a45;p=mdsal.git Fix wrong call to delete instead of write. Change-Id: Ib7ed39e082fb83d3c78e752129a1cc573a43fcdd Signed-off-by: Andrej Záň --- diff --git a/dom/mdsal-dom-inmemory-datastore/src/main/java/org/opendaylight/mdsal/dom/store/inmemory/InmemoryDOMDataTreeShardWriteTransaction.java b/dom/mdsal-dom-inmemory-datastore/src/main/java/org/opendaylight/mdsal/dom/store/inmemory/InmemoryDOMDataTreeShardWriteTransaction.java index 57d78b860d..ca5cd2c007 100644 --- a/dom/mdsal-dom-inmemory-datastore/src/main/java/org/opendaylight/mdsal/dom/store/inmemory/InmemoryDOMDataTreeShardWriteTransaction.java +++ b/dom/mdsal-dom-inmemory-datastore/src/main/java/org/opendaylight/mdsal/dom/store/inmemory/InmemoryDOMDataTreeShardWriteTransaction.java @@ -135,7 +135,7 @@ class InmemoryDOMDataTreeShardWriteTransaction implements DOMDataTreeShardWriteT } void write(final YangInstanceIdentifier path, final NormalizedNode data) { - SimpleCursorOperation.DELETE.apply(getCursor(), toRelative(path), data); + SimpleCursorOperation.WRITE.apply(getCursor(), toRelative(path), data); } private YangInstanceIdentifier toRelative(final YangInstanceIdentifier path) {