tree data UPDATE do not use temp list for logging
It does not have its keys anyway and it mixes
with previous data nodes stored for logging when
it does not follow the pattern of parents in the set.
Fixes #1961
diff --git a/src/tree_data_new.c b/src/tree_data_new.c
index cac5ae0..752b181 100644
--- a/src/tree_data_new.c
+++ b/src/tree_data_new.c
@@ -145,7 +145,7 @@
/* create list */
LY_CHECK_GOTO(ret = lyd_create_inner(schema, &list), cleanup);
- LOG_LOCSET(NULL, list, NULL, NULL);
+ LOG_LOCSET(schema, NULL, NULL, NULL);
/* create and insert all the keys */
LY_ARRAY_FOR(predicates, u) {
@@ -161,7 +161,7 @@
list = NULL;
cleanup:
- LOG_LOCBACK(0, 1, 0, 0);
+ LOG_LOCBACK(1, 0, 0, 0);
lyd_free_tree(list);
return ret;
}