Skip to content

Commit

Permalink
[core] fix raising E_CORE_PROC_AUTO_SCALE
Browse files Browse the repository at this point in the history
The event is raised by the attendent process, which is not properly init for all event backends.
So better dispatch the event to the regular workers to be raised.
  • Loading branch information
bogdan-iancu committed May 8, 2024
1 parent 9f9e464 commit afbdbdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pt_scaling.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ static void _pt_raise_event(struct process_group *pg, int p_id, int load,
goto error;
}

if (evi_raise_event(EVI_PROC_AUTO_SCALE_ID, list)) {
if (evi_dispatch_event(EVI_PROC_AUTO_SCALE_ID, list)) {
LM_ERR("unable to send auto scaling event\n");
}
return;
Expand Down

0 comments on commit afbdbdc

Please sign in to comment.