Skip to content
Snippets Groups Projects
Commit d441b9b1 authored by David Vasek's avatar David Vasek Committed by Libor Peltan
Browse files

catalog: add some asserts to catalog_zone_purge()

parent c76f3bd3
No related branches found
No related tags found
1 merge request!1370Implement purge of catalog DB
......@@ -371,6 +371,9 @@ int catalog_update_del_all(catalog_update_t *u, catalog_t *cat, const knot_dname
int catalog_zone_purge(server_t *server, conf_t *conf, const knot_dname_t *zone)
{
assert(server);
assert(zone);
if (server->catalog.ro_txn == NULL) {
return KNOT_EOK; // no catalog at all
}
......
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