Modified: CalendarServer/branches/users/glyph/sharedpool/txdav/base/datastore/asyncsqlpool.py (6497 => 6498)
--- CalendarServer/branches/users/glyph/sharedpool/txdav/base/datastore/asyncsqlpool.py 2010-11-01 21:13:37 UTC (rev 6497)
+++ CalendarServer/branches/users/glyph/sharedpool/txdav/base/datastore/asyncsqlpool.py 2010-11-01 21:13:56 UTC (rev 6498)
@@ -336,14 +336,9 @@
returnValue({})
- @inlineCallbacks
def _complete(self, transactionID, thunk):
txn = self._txns.pop(transactionID)
- try:
- yield thunk(txn)
- returnValue({})
- finally:
- self.pool.reclaim(txn)
+ return thunk(txn).addCallback(lambda ignored: {})
@Commit.responder