[asterisk-dev] astdb-realtime locking (oej: branch oej/codename-appleraisin-trunk r176560 - /team/oej/codename-apple...)

Russell Bryant russell at digium.com
Tue Feb 17 13:33:04 CST 2009


SVN commits to the Digium repositories wrote:
> Author: oej
> Date: Tue Feb 17 12:03:43 2009
> New Revision: 176560

> Russellb: Some questions from you inline

> +/*! \todo Ask Russell (the locking master) if we do need to bother with the db_lock when using realtime,
> +	since realtime has it's own locking. Is there a need to also protect this layer?
> +	- Potential issues? 
> +	- Benefits from removing a locking layer?
> +*/

You do not need to hold the dblock at all when using realtime.  Its only 
purpose is to protect access to the db1 version of astdb.  So, if you're 
not using that as your database, then no locking in the astdb layer is 
required.

-- 
Russell Bryant
Digium, Inc. | Senior Software Engineer, Open Source Team Lead
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list