commit | 53ac4ddabeef7af117234b362e19f98e36e6142b | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Jun 07 10:56:08 2022 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Jun 07 11:08:37 2022 +0200 |
tree | a7a6416dda2d7242de88833669a3863cd9f9d0a3 | |
parent | cd2c88a57fbe4f2c146136f489634335cbd7f335 [diff] [blame] |
tree data FEATURE dup option not to duplicate ext nodes
diff --git a/src/tree_data.c b/src/tree_data.c index 46668a7..eee87c8 100644 --- a/src/tree_data.c +++ b/src/tree_data.c
@@ -1562,6 +1562,11 @@ LY_CHECK_ARG_RET(NULL, node, LY_EINVAL); if (node->flags & LYD_EXT) { + if (options & LYD_DUP_NO_EXT) { + /* no not duplicate this subtree */ + return LY_SUCCESS; + } + /* we need to use the same context */ trg_ctx = LYD_CTX(node); }