Modified: CalendarServer/branches/users/glyph/uuid-normalize/txdav/common/datastore/sql.py (9292 => 9293)
--- CalendarServer/branches/users/glyph/uuid-normalize/txdav/common/datastore/sql.py 2012-05-24 20:34:27 UTC (rev 9292)
+++ CalendarServer/branches/users/glyph/uuid-normalize/txdav/common/datastore/sql.py 2012-05-24 20:34:30 UTC (rev 9293)
@@ -4122,6 +4122,7 @@
fixedThisHome = yield fixOneCalendarHome(this)
else:
fixedThisHome = 0
+ fixedOtherHome = 0
if this is None:
log_msg(format="%(uid)r appears to be missing, already processed",
uid=UID)
@@ -4136,6 +4137,8 @@
"[%(homeType)s]",
uid=UID, newuid=newname, homeType=homeTypeName)
other = yield t.homeWithUID(homeType, newname)
+ if homeType == ECALENDARTYPE:
+ fixedOtherHome = yield fixOneCalendarHome(other)
if other is not None:
this = yield mergeHomes(t, this, other, homeType)
# NOTE: WE MUST NOT TOUCH EITHER HOME OBJECT AFTER THIS
@@ -4146,8 +4149,9 @@
elapsed = end - start
allElapsed.append(elapsed)
log_msg(format="Scanned UID %(uid)s; %(elapsed)s seconds elapsed,"
- " %(fixes)s properties fixed.", uid=UID, elapsed=elapsed,
- fixes=fixedThisHome)
+ " %(fixes)s properties fixed (%(duplicate)s fixes in "
+ "duplicate).", uid=UID, elapsed=elapsed, fixes=fixedThisHome,
+ duplicate=fixedOtherHome)
returnValue(None)