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

source_changes at macosforge.org source_changes at macosforge.org
Fri Jan 4 16:38:51 PST 2013


Revision: 10236
          http://trac.calendarserver.org//changeset/10236
Author:   glyph at apple.com
Date:     2013-01-04 16:38:51 -0800 (Fri, 04 Jan 2013)
Log Message:
-----------
Return a valid value for AMP return; cause test to pass.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/queue.py

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

Modified: CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/queue.py
===================================================================
--- CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/queue.py	2013-01-05 00:38:49 UTC (rev 10235)
+++ CalendarServer/branches/users/glyph/queue-locking-and-timing/twext/enterprise/queue.py	2013-01-05 00:38:51 UTC (rev 10236)
@@ -541,6 +541,9 @@
         def performed(result):
             self._bonusLoad -= 1
             return result
+        @d.addCallback
+        def success(result):
+            return None
         return d
 
 
@@ -558,7 +561,9 @@
 
         @return: a L{Deferred} that fires when the work has been completed.
         """
-        return self.peerPool.performWorkForPeer(table, workID)
+        return self.peerPool.performWorkForPeer(table, workID).addCallback(
+            lambda ignored: {}
+        )
 
 
     @IdentifyNode.responder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130104/a6eee220/attachment.html>


More information about the calendarserver-changes mailing list