server: health: fix race condition on slots data using tasks queue (#5634)
* server: health: fix race condition on slots data using tasks queue * server: health: * include_slots only if slots_endpoint * fix compile warning task.target_id not initialized.
This commit is contained in:
parent
a00a35cef9
commit
1ecea255eb
3 changed files with 84 additions and 43 deletions
|
@ -49,7 +49,8 @@ enum server_state {
|
|||
enum task_type {
|
||||
TASK_TYPE_COMPLETION,
|
||||
TASK_TYPE_CANCEL,
|
||||
TASK_TYPE_NEXT_RESPONSE
|
||||
TASK_TYPE_NEXT_RESPONSE,
|
||||
TASK_TYPE_SLOTS_DATA
|
||||
};
|
||||
|
||||
struct task_server {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue