Hello,

On 21.02.24 10:30, Patrick Karton via sr-users wrote:
> Hello are htable protected for  multiple write access? 
>
> can i safely update htable from one process and be sure another
> process will access it for write operation ? if yes is the lock on all
> the htable or only on the bucket where the key belongs ? 

yes, read and write are protected by a lock on the bucket where the key
is stored.


Only if you need to do a read, plus some other operations to update the
item and then write back, without letting other process to update the
item meanwhile, you need to do locking using the functions provided by
htable in this scope.


Cheers,
Daniel

-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio Advanced Training, February 20-22, 2024 -- asipto.com
Kamailio World Conference, April 18-19, 2024, Berlin -- kamailioworld.com
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to