[CalendarServer-changes] [6864] CalendarServer/branches/users/glyph/db-reconnect/twext/enterprise/ adbapi2.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Feb 3 11:00:49 PST 2011
Revision: 6864
http://trac.macosforge.org/projects/calendarserver/changeset/6864
Author: glyph at apple.com
Date: 2011-02-03 11:00:49 -0800 (Thu, 03 Feb 2011)
Log Message:
-----------
Renaming for clarity: SpooledTxn -> _WaitingTxn
Modified Paths:
--------------
CalendarServer/branches/users/glyph/db-reconnect/twext/enterprise/adbapi2.py
Modified: CalendarServer/branches/users/glyph/db-reconnect/twext/enterprise/adbapi2.py
===================================================================
--- CalendarServer/branches/users/glyph/db-reconnect/twext/enterprise/adbapi2.py 2011-02-03 19:00:46 UTC (rev 6863)
+++ CalendarServer/branches/users/glyph/db-reconnect/twext/enterprise/adbapi2.py 2011-02-03 19:00:49 UTC (rev 6864)
@@ -189,10 +189,10 @@
-class SpooledTxn(object):
+class _WaitingTxn(object):
"""
- A L{SpooledTxn} is an implementation of L{IAsyncTransaction} which cannot
- yet actually execute anything, so it spools SQL reqeusts for later
+ A L{_WaitingTxn} is an implementation of L{IAsyncTransaction} which cannot
+ yet actually execute anything, so it waits and spools SQL requests for later
execution. When a L{_ConnectedTxn} becomes available later, it can be
unspooled onto that.
"""
@@ -279,7 +279,7 @@
def _unspoolOnto(self, baseTxn):
"""
- Replace my C{_baseTxn}, currently a L{SpooledTxn}, with a new
+ Replace my C{_baseTxn}, currently a L{_WaitingTxn}, with a new
implementation of L{IAsyncTransaction} that will actually do the work;
either a L{_ConnectedTxn} or a L{FailedTxn}.
"""
@@ -384,8 +384,8 @@
fired when its execution has completed.
@ivar _waiting: The list of L{PooledSqlTxn} objects attached to a
- L{SpooledTxn}; i.e. those which are awaiting a connection to become free
- so that they can be executed.
+ L{_WaitingTxn}; i.e. those which are awaiting a connection to become
+ free so that they can be executed.
@ivar _stopping: Is this L{ConnectionPool} in the process of shutting down?
(If so, new connections will not be established.)
@@ -474,7 +474,7 @@
elif self._free:
basetxn = self._free.pop(0)
else:
- basetxn = SpooledTxn()
+ basetxn = _WaitingTxn()
tracking = self._waiting
txn = PooledSqlTxn(self, basetxn)
tracking.append(txn)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110203/c1ba0c71/attachment.html>
More information about the calendarserver-changes
mailing list