forked from syslog-ng/syslog-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filterx: add scope generations to avoid having to clone the scope
Instead of having to clone variables at every transition between filterx scopes, add a "generation" counter which indicates if a previously stored value is considered part of the scope or not. At every transition we bump the generation counter of the scope (and at clone we set it to 0). If our lookup returns a variable from a previous generation, it is considered unset, just as we would unset it if we were to sync() or clone() the scope. Signed-off-by: Balazs Scheidler <[email protected]>
- Loading branch information
Showing
1 changed file
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters