[CalendarServer-changes] [15712] CalendarServer/trunk/twistedcaldav/test/test_upgrade.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Jun 28 07:07:20 PDT 2016


Revision: 15712
          http://trac.calendarserver.org//changeset/15712
Author:   cdaboo at apple.com
Date:     2016-06-28 07:07:20 -0700 (Tue, 28 Jun 2016)
Log Message:
-----------
Make sure sqlite file is closed before we delete it after migration.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/test/test_upgrade.py

Modified: CalendarServer/trunk/twistedcaldav/test/test_upgrade.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/test_upgrade.py	2016-06-27 18:36:57 UTC (rev 15711)
+++ CalendarServer/trunk/twistedcaldav/test/test_upgrade.py	2016-06-28 14:07:20 UTC (rev 15712)
@@ -1482,6 +1482,7 @@
         sqliteProxyService = ProxySqliteDB("proxies.sqlite")
         proxyFile = os.path.join(config.DataRoot, "proxies.xml")
         yield loadDelegatesFromXMLintoProxyDB(proxyFile, sqliteProxyService)
+        sqliteProxyService.close()
 
         # Load delegates from sqlite into store
         yield migrateDelegatesToStore(store)
@@ -1505,7 +1506,6 @@
         )
 
         yield txn.commit()
-        sqliteProxyService.close()
 
 
     @inlineCallbacks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20160628/c4ed3e2d/attachment.html>


More information about the calendarserver-changes mailing list