]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_memory_cache: Reduce cache lock time for sorcery memory cache populate... master
authorMike Bradeen <mbradeen@sangoma.com>
Tue, 6 Jan 2026 17:04:50 +0000 (10:04 -0700)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 8 Jan 2026 13:26:25 +0000 (13:26 +0000)
commit9c28709fca48764fb69dcfd3e9b77ae75e7c9ad6
tree4fd8c8a566233c0094d09028b033d8ae59ca999b
parent696f658492e24344020488850f49cde42e0a2d7b
res_sorcery_memory_cache: Reduce cache lock time for sorcery memory cache populate command

Reduce cache lock time for AMI and CLI sorcery memory cache populate
commands by adding a new populate_lock to the sorcery_memory_cache
struct which is locked separately from the existing cache lock so that
the cache lock can be maintained for a reduced time, locking only when
the cache objects are removed and re-populated.

Resolves: #1700

UserNote: The AMI command sorcery memory cache populate will now
return an error if there is an internal error performing the populate.
The CLI command will display an error in this case as well.
res/res_sorcery_memory_cache.c