Skip to content
Snippets Groups Projects
Commit 2ffd91b5 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman
Browse files

notify: fix bsearch in unsorted dynarray

parent dc325e87
No related branches found
No related tags found
1 merge request!1745Zonefile skip
Pipeline #136385 passed
/* Copyright (C) 2024 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
/* Copyright (C) 2025 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
......@@ -192,9 +192,12 @@ int event_notify(conf_t *conf, zone_t *zone)
pthread_mutex_lock(&zone->preferred_lock);
if (ret != KNOT_EOK) {
failed = true;
notifailed_rmt_dynarray_add(&zone->notifailed, &rmt_hash);
if (!retry) {
notifailed_rmt_dynarray_add(&zone->notifailed, &rmt_hash);
}
} else {
notifailed_rmt_dynarray_remove(&zone->notifailed, &rmt_hash);
notifailed_rmt_dynarray_sort(&zone->notifailed);
}
conf_mix_iter_next(&iter);
......
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