All calls to ca_reset plugin callback has db=tmp

This commit is contained in:
Olof hagsand 2023-02-02 14:46:53 +01:00
parent a203f6cde7
commit 3d64eddaf2

View file

@ -905,7 +905,12 @@ main(int argc,
goto done;
case SM_NONE: /* Fall through *
* Load plugins and call plugin_init() */
if (clixon_plugin_reset_all(h, "running") < 0)
if (xmldb_db_reset(h, "tmp") < 0)
goto done;
if (clixon_plugin_reset_all(h, "tmp") < 0)
goto done;
/* Copy tmp to running after reset where extra xml may have been introduced */
if (xmldb_copy(h, "tmp", "running") < 0)
goto done;
status = STARTUP_OK;
break;