Optimized datastore access by ensuring REPORT_ALL in memory and EXPLICIT in file

This commit is contained in:
Olof hagsand 2024-02-01 20:14:10 +01:00
parent 9989ee4d52
commit f8de2b7c0a
12 changed files with 183 additions and 217 deletions

View file

@ -323,6 +323,9 @@ startup_extraxml(clixon_handle h,
goto fail;
if (xt==NULL || xml_child_nr(xt)==0)
goto ok;
/* Ensure yang bindings and defaults that were scratched in startup_validate */
if (xmldb_populate(h, tmp_db) < 0)
goto done;
/* Merge tmp into running (no commit) */
if ((ret = db_merge(h, tmp_db, "running", cbret)) < 0)
goto fail;