Skip to content
Snippets Groups Projects
Commit 2318c6a7 authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Use list_flush instead of list_delete_all with a dummy function.

parent 72fde4fe
No related branches found
No related tags found
No related merge requests found
......@@ -165,12 +165,6 @@ static void _dump_trigger_msg(char *header, trigger_info_msg_t *msg)
}
}
static int _match_all_triggers(void *x, void *key)
{
return 1;
}
/* Validate trigger program */
static bool _validate_trigger(trig_mgr_info_t *trig_in)
{
......@@ -977,7 +971,7 @@ extern void trigger_state_restore(void)
safe_unpack_time(&buf_time, buffer);
if (trigger_list)
list_delete_all (trigger_list, _match_all_triggers, NULL);
list_flush(trigger_list);
while (remaining_buf(buffer) > 0) {
if (_load_trigger_state(buffer, protocol_version) !=
SLURM_SUCCESS)
......
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