[CalendarServer-changes] [10251] CalendarServer/branches/users/glyph/queue-locking-and-timing

source_changes at macosforge.org source_changes at macosforge.org
Fri Jan 4 16:39:10 PST 2013


Revision: 10251
          http://trac.calendarserver.org//changeset/10251
Author:   glyph at apple.com
Date:     2013-01-04 16:39:10 -0800 (Fri, 04 Jan 2013)
Log Message:
-----------
Propagate the API up to store level, for things that use a store transaction as an SQL transaction.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/queue-locking-and-timing/txdav/common/datastore/sql.py

Property Changed:
----------------
    CalendarServer/branches/users/glyph/queue-locking-and-timing/

Modified: CalendarServer/branches/users/glyph/queue-locking-and-timing/txdav/common/datastore/sql.py
===================================================================
--- CalendarServer/branches/users/glyph/queue-locking-and-timing/txdav/common/datastore/sql.py	2013-01-05 00:39:08 UTC (rev 10250)
+++ CalendarServer/branches/users/glyph/queue-locking-and-timing/txdav/common/datastore/sql.py	2013-01-05 00:39:10 UTC (rev 10251)
@@ -692,6 +692,14 @@
         return self._apnSubscriptionsBySubscriberQuery.on(self, subscriberGUID=guid)
 
 
+    def preCommit(self, operation):
+        """
+        Run things before C{commit}.  (Note: only provided by SQL
+        implementation, used only for cleaning up database state.)
+        """
+        return self._sqlTxn.preCommit(operation)
+
+
     def postCommit(self, operation):
         """
         Run things after C{commit}.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130104/0179a426/attachment.html>


More information about the calendarserver-changes mailing list