[CalendarServer-changes] [6500] CalendarServer/branches/users/glyph/sharedpool/txdav/base/datastore/ asyncsqlpool.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Nov 1 14:14:37 PDT 2010
Revision: 6500
http://trac.macosforge.org/projects/calendarserver/changeset/6500
Author: glyph at apple.com
Date: 2010-11-01 14:14:35 -0700 (Mon, 01 Nov 2010)
Log Message:
-----------
better name
Modified Paths:
--------------
CalendarServer/branches/users/glyph/sharedpool/txdav/base/datastore/asyncsqlpool.py
Modified: CalendarServer/branches/users/glyph/sharedpool/txdav/base/datastore/asyncsqlpool.py
===================================================================
--- CalendarServer/branches/users/glyph/sharedpool/txdav/base/datastore/asyncsqlpool.py 2010-11-01 21:14:22 UTC (rev 6499)
+++ CalendarServer/branches/users/glyph/sharedpool/txdav/base/datastore/asyncsqlpool.py 2010-11-01 21:14:35 UTC (rev 6500)
@@ -145,22 +145,22 @@
-class PooledDBAPITransaction(BaseSqlTxn):
+class PooledSqlTxn(BaseSqlTxn):
def __init__(self, pool):
self.pool = pool
- super(PooledDBAPITransaction, self).__init__(
+ super(PooledSqlTxn, self).__init__(
self.pool.connectionFactory,
self.pool.reactor
)
def commit(self):
- return self.repoolAfter(super(PooledDBAPITransaction, self).commit())
+ return self.repoolAfter(super(PooledSqlTxn, self).commit())
def abort(self):
- return self.repoolAfter(super(PooledDBAPITransaction, self).abort())
+ return self.repoolAfter(super(PooledSqlTxn, self).abort())
def repoolAfter(self, d):
@@ -208,7 +208,7 @@
if self.free:
txn = self.free.pop(0)
else:
- txn = PooledDBAPITransaction(self)
+ txn = PooledSqlTxn(self)
self.busy.append(txn)
return self.txn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101101/aa0e4a9f/attachment.html>
More information about the calendarserver-changes
mailing list