startup_mode: did not clear running
This commit is contained in:
parent
17c60dcc07
commit
3d3ecd4e4d
1 changed files with 6 additions and 0 deletions
|
|
@ -523,6 +523,9 @@ startup_mode_running(clicon_handle h,
|
||||||
/* Load plugins and call plugin_init() */
|
/* Load plugins and call plugin_init() */
|
||||||
if (plugin_initiate(h) != 0)
|
if (plugin_initiate(h) != 0)
|
||||||
goto done;
|
goto done;
|
||||||
|
/* Clear running db */
|
||||||
|
if (db_reset(h, "running") < 0)
|
||||||
|
goto done;
|
||||||
/* Clear tmp db */
|
/* Clear tmp db */
|
||||||
if (db_reset(h, "tmp") < 0)
|
if (db_reset(h, "tmp") < 0)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
@ -565,6 +568,9 @@ startup_mode_startup(clicon_handle h,
|
||||||
/* Load plugins and call plugin_init() */
|
/* Load plugins and call plugin_init() */
|
||||||
if (plugin_initiate(h) != 0)
|
if (plugin_initiate(h) != 0)
|
||||||
goto done;
|
goto done;
|
||||||
|
/* Clear running db */
|
||||||
|
if (db_reset(h, "running") < 0)
|
||||||
|
goto done;
|
||||||
/* Clear tmp db */
|
/* Clear tmp db */
|
||||||
if (db_reset(h, "tmp") < 0)
|
if (db_reset(h, "tmp") < 0)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue