mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
MINOR: cfgparse: Space allocation for "server_name" stick-table data type.
When parsing sticking rules, with this patch we reserve some room for the new "server_name" stick-table data type, as this is already done for "server_id", setting the offset and used space (in bytes) in the stick-table entry thanks to stkable_alloc_data_type().
This commit is contained in:
parent
5ad57ea85f
commit
db52d9087a
@ -2715,6 +2715,7 @@ int check_config_validity()
|
|||||||
free((void *)mrule->table.name);
|
free((void *)mrule->table.name);
|
||||||
mrule->table.t = target;
|
mrule->table.t = target;
|
||||||
stktable_alloc_data_type(target, STKTABLE_DT_SERVER_ID, NULL);
|
stktable_alloc_data_type(target, STKTABLE_DT_SERVER_ID, NULL);
|
||||||
|
stktable_alloc_data_type(target, STKTABLE_DT_SERVER_NAME, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2748,6 +2749,7 @@ int check_config_validity()
|
|||||||
free((void *)mrule->table.name);
|
free((void *)mrule->table.name);
|
||||||
mrule->table.t = target;
|
mrule->table.t = target;
|
||||||
stktable_alloc_data_type(target, STKTABLE_DT_SERVER_ID, NULL);
|
stktable_alloc_data_type(target, STKTABLE_DT_SERVER_ID, NULL);
|
||||||
|
stktable_alloc_data_type(target, STKTABLE_DT_SERVER_NAME, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user