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:
Frdric Lcaille 2019-05-17 10:12:52 +02:00 committed by Willy Tarreau
parent 5ad57ea85f
commit db52d9087a

View File

@ -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);
} }
} }