[Dev] Shared transactions

Leo Bayer lbayer at alterpoint.com
Mon Aug 27 16:01:10 CDT 2007


Brett,
  Instead of doing a beginOrJoin for transactions would it make sense to 
use some sort of "re-entrant" transaction.  Doing so would allow the 
usage of a transaction to not care if it is the owner or not and would 
call commit with the assumption that the last commit in the stack 
performs the actual commit.

For example:
  begin(); // begins the transaction
     begin(); // increments the begin count, does not begin a new 
transaction
     commit(); // decrements begin count, does not commit
  commit(); // performs the commit

Just a thought,
 - Leo



More information about the Dev mailing list