From f534d9f6fad4f575675e5432b03c48a94233aac1 Mon Sep 17 00:00:00 2001 From: XiaoFeng Yu <43255432@qq.com> Date: Fri, 19 Apr 2019 15:55:44 +0800 Subject: [PATCH] Update ngx_http_upsync_module.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 通过队列指针获取原始数据结构,ngx_queue_data参数错误。 --- src/ngx_http_upsync_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngx_http_upsync_module.c b/src/ngx_http_upsync_module.c index 49d8a71..f409566 100644 --- a/src/ngx_http_upsync_module.c +++ b/src/ngx_http_upsync_module.c @@ -3612,7 +3612,7 @@ ngx_http_upsync_clear_all_events(ngx_cycle_t *cycle) next != ngx_queue_sentinel(head); next = ngx_queue_next(next)) { - queue_event = ngx_queue_data(next, ngx_delay_event_t, delay_delete_ev); + queue_event = ngx_queue_data(next, ngx_delay_event_t, queue); if (queue_event->delay_delete_ev.timer_set) { ngx_del_timer(&queue_event->delay_delete_ev); }