C-API: New no-copy xmldb_get_cache function for performance

Added SKIP flag to XML for skipping nodes in xml_diff
This commit is contained in:
Olof hagsand 2024-12-18 10:16:29 +01:00
parent 2a6bbac712
commit ead9e8d666
11 changed files with 195 additions and 98 deletions

View file

@ -441,9 +441,8 @@ startup_validate(clixon_handle h,
}
retval = 1;
done:
if (td){
transaction_free(td);
}
if (td)
transaction_free1(td, 1);
return retval;
fail: /* cbret should be set */
retval = 0;
@ -662,7 +661,7 @@ candidate_validate(clixon_handle h,
if (td){
if (retval < 1)
plugin_transaction_abort_all(h, td);
transaction_free(td);
transaction_free1(td, 1);
}
return retval;
fail:
@ -772,7 +771,7 @@ candidate_commit(clixon_handle h,
if (td){
if (retval < 1)
plugin_transaction_abort_all(h, td);
transaction_free(td);
transaction_free1(td, 1);
}
if (xret)
xml_free(xret);
@ -1081,9 +1080,8 @@ from_client_restart_one(clixon_handle h,
goto fail;
retval = 1;
done:
if (td){
transaction_free(td);
}
if (td)
transaction_free1(td, 1);
return retval;
fail:
retval = 0;