[CalendarServer-changes] [3292] CalendarServer/trunk/twistedcaldav/sql.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 30 18:02:56 PDT 2008


Revision: 3292
          http://trac.macosforge.org/projects/calendarserver/changeset/3292
Author:   cdaboo at apple.com
Date:     2008-10-30 18:02:56 -0700 (Thu, 30 Oct 2008)
Log Message:
-----------
Need to restore some of the previous code here as tests were failing on this. But it will
continue to work with Python 2.6.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/sql.py

Modified: CalendarServer/trunk/twistedcaldav/sql.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/sql.py	2008-10-31 00:47:28 UTC (rev 3291)
+++ CalendarServer/trunk/twistedcaldav/sql.py	2008-10-31 01:02:56 UTC (rev 3292)
@@ -162,7 +162,8 @@
         # We need an exclusive lock here as we are making a big change to the database and we don't
         # want other processes to get stomped on or stomp on us.
         old_isolation = self._db_connection.isolation_level
-        self._db_connection.isolation_level = "EXCLUSIVE"
+        self._db_connection.isolation_level = None
+        q.execute("begin exclusive transaction")
         
         # We re-check whether the schema table is present again AFTER we've got an exclusive
         # lock as some other server process may have snuck in and already created it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081030/219e115b/attachment.html>


More information about the calendarserver-changes mailing list