All calls to ca_reset plugin callback has db=tmp
This commit is contained in:
parent
a203f6cde7
commit
3d64eddaf2
1 changed files with 6 additions and 1 deletions
|
|
@ -905,8 +905,13 @@ main(int argc,
|
||||||
goto done;
|
goto done;
|
||||||
case SM_NONE: /* Fall through *
|
case SM_NONE: /* Fall through *
|
||||||
* Load plugins and call plugin_init() */
|
* Load plugins and call plugin_init() */
|
||||||
if (clixon_plugin_reset_all(h, "running") < 0)
|
if (xmldb_db_reset(h, "tmp") < 0)
|
||||||
goto done;
|
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;
|
status = STARTUP_OK;
|
||||||
break;
|
break;
|
||||||
case SM_RUNNING: /* Use running as startup */
|
case SM_RUNNING: /* Use running as startup */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue