[Zope] Confusion about thread safety

Gérard Oogle g.oogle at free.fr
Sat Aug 30 11:40:32 EDT 2003


>when two different users want to commit changes made to the same object at the 
>same time
>
In http://www.dieter.handshake.de/pyprojects/zope/zope.html#bct_sec_5.1:
'The ZODB usually guarantees that a transaction does not read
inconsistent data by issuing a |ReadConflictError| when it tries to read
an object from the ZODB that has been modified since transaction start.
Zope usually restarts the transaction in this case.'

I would guess so that:

    * Since there is no such thing as 'at the same time' ...
    * the /first/ client that will issue a commit will be fine
    * Without Dieter's patch, the /second/ one should fail because a
      |ReadConflictError will have been thrown
      |

-- 
Gérard





More information about the Zope mailing list