141 ods_log_error(
"[%s[%i]] sign zone %s failed: %u RRsets failed",
146 ods_log_error(
"[%s[%i]] sign zone %s failed: processed %u of %u RRsets",
156 ods_log_debug(
"[%s[%i]] sign zone %s ok: %u of %u RRsets succeeded",
179 time_t never = (3600*24*365);
183 char* working_dir = NULL;
184 char* cfg_filename = NULL;
185 uint32_t tmpserial = 0;
205 switch (task->
what) {
226 goto task_perform_continue;
253 goto task_perform_fail;
255 goto task_perform_continue;
266 ods_log_debug(
"[%s[%i]] no valid signconf.xml for zone %s yet",
279 goto task_perform_fail;
281 goto task_perform_continue;
301 goto task_perform_fail;
303 goto task_perform_continue;
315 "failed to increment serial",
343 "signing zone %s, %u signatures queued",
352 status = worker_check_jobs(worker, task);
373 goto task_perform_fail;
375 goto task_perform_continue;
393 status =
tools_audit(zone, working_dir, cfg_filename);
394 if (working_dir) { free((
void*)working_dir); }
395 if (cfg_filename) { free((
void*)cfg_filename); }
405 goto task_perform_fail;
407 goto task_perform_continue;
424 goto task_perform_fail;
426 goto task_perform_continue;
511 if (task->
backoff > ODS_SE_MAX_BACKOFF) {
512 task->
backoff = ODS_SE_MAX_BACKOFF;
514 ods_log_info(
"[%s[%i]] backoff task %s for zone %s with %u seconds",
521 task_perform_continue:
545 time_t now, timeout = 1;
570 worker_perform_task(worker);
595 timeout = (worker->
task->
when - now);
599 if (timeout > ODS_SE_MAX_BACKOFF) {
600 timeout = ODS_SE_MAX_BACKOFF;
625 hsm_ctx_t* ctx = NULL;
658 ctx = hsm_create_context();
691 if (worker_fulfilled(chief) && chief->
sleeping) {
711 hsm_destroy_context(ctx);
725 switch (worker->
type) {
727 worker_drudge(worker);
769 while (!worker->
need_to_exit && !worker_fulfilled(worker)) {
774 ods_log_debug(
"[%s[%i]] somebody poked me, check completed jobs %u "
775 "appointed, %u completed, %u failed", worker2str(worker->
type),
895 cond_basic_type worker_cond;