mirror of https://github.com/lidarr/Lidarr
Fixed: Only vacuum the main db on startup
This commit is contained in:
parent
e4de87c0ad
commit
b60633882e
|
@ -15,7 +15,6 @@ namespace NzbDrone.Core.Datastore
|
||||||
IDatabase Create(MigrationType migrationType = MigrationType.Main);
|
IDatabase Create(MigrationType migrationType = MigrationType.Main);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public class DbFactory : IDbFactory
|
public class DbFactory : IDbFactory
|
||||||
{
|
{
|
||||||
private readonly IMigrationController _migrationController;
|
private readonly IMigrationController _migrationController;
|
||||||
|
@ -79,8 +78,11 @@ namespace NzbDrone.Core.Datastore
|
||||||
return dataMapper;
|
return dataMapper;
|
||||||
});
|
});
|
||||||
|
|
||||||
db.Vacuum();
|
|
||||||
|
|
||||||
|
if (migrationType == MigrationType.Main)
|
||||||
|
{
|
||||||
|
db.Vacuum();
|
||||||
|
}
|
||||||
|
|
||||||
return db;
|
return db;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue