xen-org/xen-api — pull request #857 by johnelse (2012-09-05 11:17:01+00:00)
Title: CA-89978: Fix restoration of database from temporary restore file.

- Delete the temporary restore file after using it to populate the
database - if we don't do this then xapi will use the restore file
again the next time it starts up.

- Perform the initial database flush to the global list of database
connections in all cases; don't flush to the restore database file
if it's being used.