Migrate to use openCursor() 11/81311/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Mar 2019 16:26:24 +0000 (17:26 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 29 Mar 2019 11:02:36 +0000 (12:02 +0100)
createCursor() has been deprecated long time ago, use its replacement
instead.

Change-Id: Id8862470ca4ad8c9fdec5c05cbac044c6715e153
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 4db06286a59f00d8cda6c952d5704e89dac9268c)

opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/LocalReadWriteProxyTransaction.java

index 8b19e30b4b641db2eea3abca902fbded1f086c0d..cf2ea8adcdf5f3ee570662feda581473fd0a3164 100644 (file)
@@ -364,7 +364,7 @@ final class LocalReadWriteProxyTransaction extends LocalProxyTransaction {
         // Rebase old modification on new data tree.
         final CursorAwareDataTreeModification mod = getModification();
 
-        try (DataTreeModificationCursor cursor = mod.createCursor(YangInstanceIdentifier.EMPTY)) {
+        try (DataTreeModificationCursor cursor = mod.openCursor()) {
             request.getModification().applyToCursor(cursor);
         }