Skip to content
Snippets Groups Projects
Commit 3c888810 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

timers: warn about error when opening the database

parent 7a819640
No related branches found
No related tags found
1 merge request!294fixes: persistent timers
......@@ -783,8 +783,9 @@ int conf_open(const char* path)
/* Open zone timers db. */
ret = open_timers_db(nconf->storage, &nconf->timers_db);
if (ret != KNOT_EOK) {
log_warning("cannot open timers DB (%s)", knot_strerror(ret));
if (ret != KNOT_EOK && ret != KNOT_ENOTSUP) {
log_warning("cannot open persistent timers DB (%s)",
knot_strerror(ret));
}
/* Replace current config. */
......
......@@ -133,7 +133,7 @@ int open_timers_db(const char *storage, knot_namedb_t **db_ptr)
const struct namedb_api *api = namedb_lmdb_api();
if (!api) {
return KNOT_EOK;
return KNOT_ENOTSUP;
}
char *path = sprintf_alloc("%s/timers", storage);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment