startup_mode: did not clear running

This commit is contained in:
Olof Hagsand 2017-11-20 22:25:55 +01:00
parent 17c60dcc07
commit 3d3ecd4e4d

View file

@ -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;