Restoring a corrupt file does not roll back the database

@RGJ Thanks for investigating! I’ve applied the fix and backported it to stable.

8 Mi Piace