Speed up root overwrite check 60/93860/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 17 Nov 2020 14:48:13 +0000 (15:48 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 17 Nov 2020 14:48:57 +0000 (15:48 +0100)
commit5d761355a11fc761e8faccb36b05453013f1e4d1
treeaf845c08f300ac73e574c18259df632672ec56fd
parent98137e91bb5896d111293f8109bed42b3454b943
Speed up root overwrite check

We can use YangInstanceIdentifier.isEmpty() and extract the single
ModificationType we care about.

Change-Id: Ie29c32ea0b197547bce67a7b2ffdd530e79276da
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.