]> git.kaiwu.me - haproxy.git/commit
MEDIUM: pattern: add a revision to all pattern expressions
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Apr 2015 15:53:47 +0000 (17:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Apr 2015 17:15:24 +0000 (19:15 +0200)
commit72f073b6c7478e6846dfe67eedb1642af45c4562
treeddd6de8440475d1b9bf205f95cdef2e9292681e5
parentb5684e00811fe3121a86ab3bbdae64c205968ae1
MEDIUM: pattern: add a revision to all pattern expressions

This will be used to detect any change on the pattern list between
two operations, ultimately making it possible to implement a cache
which immediately invalidates obsolete keys after an update. The
revision is simply taken from the timestamp counter to ensure that
even upon a pointer reuse we cannot accidently come back to the
same (expr,revision) tuple.
include/types/pattern.h
src/pattern.c