From c6896c340231c00ee3f4134dcdf76f018ff20b7e Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 29 Apr 2021 17:41:25 +0200 Subject: evaluate: remove chain from cache on delete chain command Update the cache to remove this chain from the evaluation phase. Add chain_cache_del() function for this purpose. Signed-off-by: Pablo Neira Ayuso --- src/cache.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cache.c') diff --git a/src/cache.c b/src/cache.c index 3c139f1a..a98ee595 100644 --- a/src/cache.c +++ b/src/cache.c @@ -278,6 +278,11 @@ void chain_cache_add(struct chain *chain, struct table *table) cache_add(&chain->cache, &table->chain_cache, hash); } +void chain_cache_del(struct chain *chain) +{ + cache_del(&chain->cache); +} + struct chain *chain_cache_find(const struct table *table, const char *name) { struct chain *chain; -- cgit v1.2.3