void IInitializeService.Initialize() { lock (this) { migrator.Migrate(); migrator = null; try { OptimizeDatabase(); } catch (Exception e) { Log.Error("Error determining if ANALYZE is necessary", e); } // Update cached sorting keys BeginTransaction(); try { SortKeyUpdater.Update(); CommitTransaction(); } catch { RollbackTransaction(); } } if (Banshee.Metrics.BansheeMetrics.EnableCollection.Get()) { Banshee.Metrics.BansheeMetrics.Start(); } if (validate_schema) { ValidateSchema(); } }
void IInitializeService.Initialize() { lock (this) { migrator.Migrate(); migrator = null; try { OptimizeDatabase(); } catch (Exception e) { Log.Exception("Error determining if ANALYZE is necessary", e); } // Update cached sorting keys SortKeyUpdater.Update(); } }