[Checkins] SVN: transaction/branches/synchfix/ * call synchronizers when creating new transaction in transaction.get

Juergen Kartnaller juergen at kartnaller.at
Mon Sep 22 08:24:37 EDT 2008


Log message for revision 91327:
   * call synchronizers when creating new transaction in transaction.get
  

Changed:
  U   transaction/branches/synchfix/CHANGES.txt
  U   transaction/branches/synchfix/transaction/_manager.py

-=-
Modified: transaction/branches/synchfix/CHANGES.txt
===================================================================
--- transaction/branches/synchfix/CHANGES.txt	2008-09-22 12:21:27 UTC (rev 91326)
+++ transaction/branches/synchfix/CHANGES.txt	2008-09-22 12:24:36 UTC (rev 91327)
@@ -4,6 +4,7 @@
 1.0a2 (unreleased)
 ------------------
 
+ * call synchronizers when creating new transaction in transaction.get
  * Remove crufty DEPENDENCIES.cfg left over from zpkg.
 
 1.0a1 (12-18-2007)

Modified: transaction/branches/synchfix/transaction/_manager.py
===================================================================
--- transaction/branches/synchfix/transaction/_manager.py	2008-09-22 12:21:27 UTC (rev 91326)
+++ transaction/branches/synchfix/transaction/_manager.py	2008-09-22 12:24:36 UTC (rev 91327)
@@ -71,6 +71,7 @@
     def get(self):
         if self._txn is None:
             self._txn = Transaction(self._synchs, self)
+            _new_transaction(self._txn, self._synchs)
         return self._txn
 
     def free(self, txn):
@@ -135,6 +136,7 @@
             if synchs is None:
                 synchs = self._synchs[tid] = WeakSet()
             txn = self._txns[tid] = Transaction(synchs, self)
+            _new_transaction(txn, synchs)
         return txn
 
     def free(self, txn):



More information about the Checkins mailing list