zenichev left a comment (kamailio/kamailio#4787)

@miconda I've introduced two level of locks, low level (per bucket) and global 
(per table).
They ensure that concurrent access to the hash tables will never lead to 
unexpected races and hence invalidation of data.

What I can offer:
- I let introducing a global lock for tables (this PR already has it, just 
please review)
- for the per bucket locks and hash tables introduction, we extend the module 
to have an alternative mode, which works using them (then everyone can decide 
which mode to take, by default we keep the older one)

Drawback: more code to maintain in the module. But I will be there, so you can 
always poke me to do any changes if any maintenance required.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4787#issuecomment-4851986629
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/4787/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to