[ZODB-Dev] API for dooming a transaction for ZODB 3.3
Steve Alexander
steve at z3u.com
Thu Jan 8 11:11:29 EST 2004
Steve Alexander wrote:
>
>> This is probably a fair bit less useful now that MVCC is in play, but I
>> believe there are still cases where you may want writes in a transaction
>> to fail without preventing reads. IOW you want the transaction to fail
>> only if a write is performed, but if no writing is done then everythings
>> ok. At the time the transaction is "doomed" you will not need to know
>> whether a write will occur further down the line or not.
I would add that often persistent objects will have changed before
get_transaction().doom() is called. In this case, I think that
committing the transaction should always fail.
--
Steve Alexander
More information about the ZODB-Dev
mailing list