return KNOT_EINVAL;
}
- if (contents == NULL) {
- return KNOT_EEMPTYZONE;
- }
-
// Check if journal is used (later in zone_changes_load() and zone is not empty.
if (zone_contents_is_empty(contents)) {
return KNOT_EOK;
-/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2021 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "knot/conf/conf.h"
#include "knot/zone/zone.h"
-#include "knot/dnssec/zone-events.h" // zone_sign_reschedule_t
/*!
* \brief Load zone contents according to the configuration.
* \param contents
* \return KNOT_EOK or an error
*/
-int zone_load_from_journal(conf_t *conf, zone_t *zone,
- zone_contents_t **contents);
+int zone_load_from_journal(conf_t *conf, zone_t *zone, zone_contents_t **contents);
/*!
* \brief Check if zone can be bootstrapped.
#include <stdlib.h>
#include "knot/conf/conf.h"
+#include "knot/dnssec/zone-events.h"
#include "knot/updates/zone-update.h"
#include "knot/zone/zone-load.h"
#include "knot/zone/zonefile.h"