]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_memory_cache: Disallow per-object expire with full backend.
authorJoshua C. Colp <jcolp@sangoma.com>
Wed, 10 Jun 2020 09:35:50 +0000 (06:35 -0300)
committerJoshua Colp <jcolp@sangoma.com>
Wed, 17 Jun 2020 15:26:44 +0000 (10:26 -0500)
commit79ebbca3a7b5296d30972c13211c6e5ab8a2191e
tree10b85fbdf068955e1665c0533334de027e854b60
parent266d81c296c33c2ce374ef1a6f17e16e9725e545
res_sorcery_memory_cache: Disallow per-object expire with full backend.

The AMI action and CLI command did not take into account the properties
of full backend caching. This resulted in an expired object remaining
removed until a full backend update occurred, instead of having the
object updated when needed.

This change makes it so that the AMI action and CLI command for object
expire will now fail instead of putting the cache into an undesired
state. If full backend caching is enabled then only operations
which act on the entire cache are available.

ASTERISK-28942

Change-Id: Id662d888f177ab566c8e802ad583083b742d21f4
doc/CHANGES-staging/sorcery_memory_cache_full_expire_object.txt [new file with mode: 0644]
res/res_sorcery_memory_cache.c