mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-31 03:11:51 +00:00
Fixed: Only vacuum the main db on startup
This commit is contained in:
parent
e4de87c0ad
commit
b60633882e
1 changed files with 4 additions and 2 deletions
|
@ -15,7 +15,6 @@ public interface IDbFactory
|
|||
IDatabase Create(MigrationType migrationType = MigrationType.Main);
|
||||
}
|
||||
|
||||
|
||||
public class DbFactory : IDbFactory
|
||||
{
|
||||
private readonly IMigrationController _migrationController;
|
||||
|
@ -79,8 +78,11 @@ public IDatabase Create(MigrationType migrationType = MigrationType.Main)
|
|||
return dataMapper;
|
||||
});
|
||||
|
||||
db.Vacuum();
|
||||
|
||||
if (migrationType == MigrationType.Main)
|
||||
{
|
||||
db.Vacuum();
|
||||
}
|
||||
|
||||
return db;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue