MINOR: stktable: stktable_init() sets err_msg on error

stktable_init() now sets err_msg when error occurs so that caller is able
to precisely report the cause of the failure.
This commit is contained in:
Aurelien DARRAGON
2023-11-02 18:34:51 +01:00
committed by Willy Tarreau
parent b6a9eca88d
commit b8c19f877a
3 changed files with 23 additions and 9 deletions

View File

@@ -46,7 +46,7 @@ void stksess_free(struct stktable *t, struct stksess *ts);
int stksess_kill(struct stktable *t, struct stksess *ts, int decrefcount);
int stktable_get_key_shard(struct stktable *t, const void *key, size_t len);
int stktable_init(struct stktable *t);
int stktable_init(struct stktable *t, char **err_msg);
int stktable_parse_type(char **args, int *idx, unsigned long *type, size_t *key_size, const char *file, int linenum);
int parse_stick_table(const char *file, int linenum, char **args,
struct stktable *t, char *id, char *nid, struct peers *peers);