[Zope3-checkins] CVS: Zope3/src/ZODB - Connection.py:1.140.2.2
Jeremy Hylton
jeremy at zope.com
Mon Mar 22 16:36:29 EST 2004
Update of /cvs-repository/Zope3/src/ZODB
In directory cvs.zope.org:/tmp/cvs-serv10951
Modified Files:
Tag: jeremy-txn-branch
Connection.py
Log Message:
Fix logging for error in close callback.
Add _modified attribute for case where tpc_abort() is called without
tpc_begin().
=== Zope3/src/ZODB/Connection.py 1.140.2.1 => 1.140.2.2 ===
--- Zope3/src/ZODB/Connection.py:1.140.2.1 Thu Mar 18 16:18:34 2004
+++ Zope3/src/ZODB/Connection.py Mon Mar 22 16:36:28 2004
@@ -155,6 +155,7 @@
self._reset_counter = global_reset_counter
self._load_count = 0 # Number of objects unghosted
self._store_count = 0 # Number of objects stored
+ self._modified = []
# _invalidated queues invalidate messages delivered from the DB
# _inv_lock prevents one thread from modifying the set while
@@ -455,7 +456,7 @@
except: # except what?
f = getattr(f, 'im_self', f)
self._log.error("Close callback failed for %s", f,
- sys.exc_info())
+ exc_info=sys.exc_info())
self.__onCloseCallbacks = None
self._storage = self._tmp = self.new_oid = None
self._debug_info = ()
More information about the Zope3-Checkins
mailing list