[CalendarServer-changes] [8324] CalendarServer/branches/users/glyph/multiget-delete/txdav/common/ icommondatastore.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Nov 18 10:13:41 PST 2011
Revision: 8324
http://trac.macosforge.org/projects/calendarserver/changeset/8324
Author: glyph at apple.com
Date: 2011-11-18 10:13:41 -0800 (Fri, 18 Nov 2011)
Log Message:
-----------
concurrent modification exception with docstring
Modified Paths:
--------------
CalendarServer/branches/users/glyph/multiget-delete/txdav/common/icommondatastore.py
Modified: CalendarServer/branches/users/glyph/multiget-delete/txdav/common/icommondatastore.py
===================================================================
--- CalendarServer/branches/users/glyph/multiget-delete/txdav/common/icommondatastore.py 2011-11-18 18:13:31 UTC (rev 8323)
+++ CalendarServer/branches/users/glyph/multiget-delete/txdav/common/icommondatastore.py 2011-11-18 18:13:41 UTC (rev 8324)
@@ -35,6 +35,7 @@
"NotFoundError",
"NoSuchHomeChildError",
"NoSuchObjectResourceError",
+ "ConcurrentModification",
"InvalidObjectResourceError",
"InternalDataStoreError",
]
@@ -98,6 +99,18 @@
The requested object resource does not exist.
"""
+class ConcurrentModification(NotFoundError):
+ """
+ Despite being loaded in the current transaction, the object whose data is
+ being requested has been deleted or modified in another transaction, and
+ therefore that data can no longer be retrieved.
+
+ (Note: in the future we should be able to avoid these types of errors with
+ more usage of locking, but until the impact of that on performance is
+ determined, callers of C{component()} need to be aware that this can
+ happen.)
+ """
+
class InvalidObjectResourceError(CommonStoreError):
"""
Invalid object resource data.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111118/6063e287/attachment.html>
More information about the calendarserver-changes
mailing list