[CalendarServer-changes] [6591] CalendarServer/trunk/twistedcaldav/directory/cachingdirectory.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Nov 10 15:28:13 PST 2010
Revision: 6591
http://trac.macosforge.org/projects/calendarserver/changeset/6591
Author: sagen at apple.com
Date: 2010-11-10 15:28:11 -0800 (Wed, 10 Nov 2010)
Log Message:
-----------
Restore record.service after memcache retry.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/cachingdirectory.py
Modified: CalendarServer/trunk/twistedcaldav/directory/cachingdirectory.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/cachingdirectory.py 2010-11-10 23:26:39 UTC (rev 6590)
+++ CalendarServer/trunk/twistedcaldav/directory/cachingdirectory.py 2010-11-10 23:28:11 UTC (rev 6591)
@@ -198,6 +198,8 @@
self.log_error("Could not read from memcache, retrying")
try:
record = self._getMemcacheClient(refresh=True).get(key)
+ if record is not None and isinstance(record, DirectoryRecord):
+ record.service = self
except MemcacheError:
self.log_error("Could not read from memcache again, giving up")
del self.memcacheClient
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101110/9b142642/attachment-0001.html>
More information about the calendarserver-changes
mailing list