[CalendarServer-changes] [6605] CalendarServer/branches/users/glyph/dont-start-postgres/txdav/base/ datastore/subpostgres.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Nov 10 18:55:28 PST 2010


Revision: 6605
          http://trac.macosforge.org/projects/calendarserver/changeset/6605
Author:   glyph at apple.com
Date:     2010-11-10 18:55:26 -0800 (Wed, 10 Nov 2010)
Log Message:
-----------
Remove now-unnecessary UnpooledSqlTxn.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/dont-start-postgres/txdav/base/datastore/subpostgres.py

Modified: CalendarServer/branches/users/glyph/dont-start-postgres/txdav/base/datastore/subpostgres.py
===================================================================
--- CalendarServer/branches/users/glyph/dont-start-postgres/txdav/base/datastore/subpostgres.py	2010-11-11 02:55:12 UTC (rev 6604)
+++ CalendarServer/branches/users/glyph/dont-start-postgres/txdav/base/datastore/subpostgres.py	2010-11-11 02:55:26 UTC (rev 6605)
@@ -38,7 +38,6 @@
 from twisted.internet.defer import Deferred
 from txdav.base.datastore.dbapiclient import DBAPIConnector
 from txdav.base.datastore.dbapiclient import postgresPreflight
-from txdav.base.datastore.asyncsqlpool import BaseSqlTxn
 
 from twisted.application.service import MultiService
 
@@ -155,23 +154,6 @@
 
 
 
-class UnpooledSqlTxn(BaseSqlTxn):
-    """
-    Unpooled variant (releases thread immediately on commit or abort),
-    currently exclusively for testing.
-    """
-    def commit(self):
-        result = super(UnpooledSqlTxn, self).commit()
-        self.stop()
-        return result
-
-    def abort(self):
-        result = super(UnpooledSqlTxn, self).abort()
-        self.stop()
-        return result
-
-
-
 class PostgresService(MultiService):
 
     def __init__(self, dataStoreDirectory, subServiceFactory,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101110/6fb615c6/attachment.html>


More information about the calendarserver-changes mailing list