[CalendarServer-changes] [9968] CalendarServer/branches/users/glyph/always-abort-txn-on-error
source_changes at macosforge.org
source_changes at macosforge.org
Mon Oct 22 16:09:18 PDT 2012
Revision: 9968
http://trac.calendarserver.org//changeset/9968
Author: glyph at apple.com
Date: 2012-10-22 16:09:18 -0700 (Mon, 22 Oct 2012)
Log Message:
-----------
remove debug prints.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/always-abort-txn-on-error/txdav/common/datastore/sql.py
Property Changed:
----------------
CalendarServer/branches/users/glyph/always-abort-txn-on-error/
Modified: CalendarServer/branches/users/glyph/always-abort-txn-on-error/txdav/common/datastore/sql.py
===================================================================
--- CalendarServer/branches/users/glyph/always-abort-txn-on-error/txdav/common/datastore/sql.py 2012-10-22 23:09:17 UTC (rev 9967)
+++ CalendarServer/branches/users/glyph/always-abort-txn-on-error/txdav/common/datastore/sql.py 2012-10-22 23:09:18 UTC (rev 9968)
@@ -757,24 +757,18 @@
# TODO: direct tests, to make sure error logging
# happens correctly in all cases.
log.err(f)
- print("AllRetriesFailed")
raise AllRetriesFailed()
triesLeft = retries
try:
while True:
- print("Acquiring...")
yield sp.acquire(block)
- print 'Acquisition!'
try:
- print 'thunk...'
result = yield thunk(block)
except:
f = Failure()
if not failureOK:
failuresToMaybeLog.append(f)
- print("rolling back..." + repr(f))
yield sp.rollback(block)
- print("rolled back.")
if triesLeft:
triesLeft -= 1
# Important to get the new block before the old one has
@@ -783,7 +777,6 @@
# they actually get done, even if they didn't actually
# block or yield to wait for them! (c.f. property
# store writes.)
- print("retrying.")
newBlock = self._sqlTxn.commandBlock()
block.end()
block = newBlock
@@ -791,9 +784,7 @@
else:
end()
else:
- print 'thunk OK', repr(result)
yield sp.release(block)
- print 'released'
block.end()
returnValue(result)
except AlreadyFinishedError:
@@ -1701,7 +1692,6 @@
@inlineCallbacks
def _bumpModified(subtxn):
- print("inner bumpModified")
yield self._lockLastModifiedQuery.on(subtxn, resourceID=self._resourceID)
result = (yield self._changeLastModifiedQuery.on(subtxn, resourceID=self._resourceID))
returnValue(result)
@@ -3446,11 +3436,8 @@
@inlineCallbacks
def _bumpModified(subtxn):
- print("1! bumpModified... " + repr(self.name()))
yield self._lockLastModifiedQuery.on(subtxn, resourceID=self._resourceID)
- print("2! locked")
result = (yield self._changeLastModifiedQuery.on(subtxn, resourceID=self._resourceID))
- print("3! OK changed: %r" % (result,))
returnValue(result)
try:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20121022/8800cfd1/attachment.html>
More information about the calendarserver-changes
mailing list