Skip to content

Commit 0e83cca

Browse files
authored
bugfix: coredump when set upsync_lb hash_ketama
struct ngx_stream_upstream_hash_srv_conf_t should be same with the one in ngx_stream_upstream_hash_module. when I use hash_ketama, it will couse coredump, because hcf got the wrong offset data
1 parent 1e08f35 commit 0e83cca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ngx_stream_upsync_module.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ typedef struct {
6767

6868

6969
typedef struct {
70+
ngx_stream_complex_value_t key;
7071
ngx_stream_upstream_chash_points_t *points;
7172
} ngx_stream_upstream_hash_srv_conf_t;
7273

0 commit comments

Comments
 (0)