[ZODB-Dev] storage API question

Jim Fulton jim@zope.com
Tue, 30 Apr 2002 06:55:26 -0400


Toby Dickenson wrote:
> 
> All of the current storages acquire a lock for the duration of their
> 'store' method, because they need to protect internal data structures
> that might be used by reads, packs, or non-transactional-undoes
> occuring in different threads.
> 
> Does the storage also have to defend against 'store' being called from
> two threads concurrently for the same transaction?

No. There is a separate transaction lock that prevents two threads
from committing at the same time.

Jim

--
Jim Fulton           mailto:jim@zope.com       Python Powered!        
CTO                  (888) 344-4332            http://www.python.org  
Zope Corporation     http://www.zope.com       http://www.zope.org