]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_memory_cache: Reduce cache lock time for sorcery memory cache populate...
authorMike Bradeen <mbradeen@sangoma.com>
Tue, 6 Jan 2026 17:04:50 +0000 (10:04 -0700)
committerMike Bradeen <mbradeen@sangoma.com>
Thu, 8 Jan 2026 13:26:17 +0000 (13:26 +0000)
commit3225cd54d4e7976fb6b17d29c4d7c30e8cf4ab55
tree3c88b9ed607c01ae5bf0c4f2f05144472ba38f9f
parent0e754b214b3932f4c90b64963b59cea1ea2aa3a9
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