commit | 8fed9037cd5a680180fd9221568c95d9dfd03042 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Jul 03 17:02:46 2014 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Jul 10 16:43:44 2014 +0200 |
tree | 05089cd70359cc2e8574a7f2e9d837c1610b2b81 | |
parent | ffcb2e4b42acd710121a57eb39651a373d904e5b [diff] |
MEDIUM: stick-table: implement lookup from a sample fetch Currently we have stktable_fetch_key() which fetches a sample according to an expression and returns a stick table key, but we also need a function which does only the second half of it from a known sample. So let's cut the function in two and introduce smp_to_stkey() to perform this lookup. The first function was adapted to make use of it in order to avoid code duplication.