Commit 186ea37
diff BUGFIX climb data tree parents to cross schema-mount boundary
In lyd_diff_dup(), the parent-climbing loop used lysc_data_parent()
to find the next parent, which returns NULL at a schema mount
boundary. This caused the diff to miss the host module's parent
containers around mounted module data.
Use the data tree parent (node_parent->parent) instead, which
crosses the mount boundary correctly. Also stop climbing once the
existing diff parent level is reached.1 parent 3eb3f18 commit 186ea37
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 355 | + | |
359 | 356 | | |
| 357 | + | |
360 | 358 | | |
361 | 359 | | |
362 | 360 | | |
| |||
0 commit comments