Updated extraxml reset callback example and added a regression test

This commit is contained in:
Olof hagsand 2023-02-02 12:17:52 +01:00
parent 6d82c70e26
commit a203f6cde7
4 changed files with 232 additions and 15 deletions

View file

@ -312,8 +312,9 @@ startup_extraxml(clicon_handle h,
if (ret == 1)
goto ok;
xt = NULL;
/* Validate the tmp db and return possibly upgraded xml in xt
*/
/* Clear db cache so that it can be read by startup */
xmldb_clear(h, tmp_db);
/* Validate the tmp db and return possibly upgraded xml in xt */
if ((ret = startup_validate(h, tmp_db, &xt, cbret)) < 0)
goto done;
if (ret == 0)