- Timestamp:
- 01/02/12 11:40:31 (13 years ago)
- Location:
- branches/RegressionBenchmarks
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks
-
branches/RegressionBenchmarks/HeuristicLab.Services.Hive.DataAccess/3.3/Logger.cs
r6983 r7255 28 28 public class LogFactory { 29 29 public static ILogger GetLogger(string source) { 30 return new Logger(Settings.Default.EventLogName, source); 30 //ignore the source parameter for now 31 return new Logger(source, Settings.Default.EventLogName); 31 32 } 32 33 } … … 47 48 public Logger(string name, string source) { 48 49 try { 49 if (!EventLog.SourceExists(source)) { 50 EventLog.CreateEventSource(source, name); 51 } 52 log = new EventLog(name); 50 log = new EventLog(); 53 51 log.Source = source; 54 52 } 55 catch ( SecurityException) { }53 catch (Exception) { } 56 54 } 57 55 … … 62 60 } 63 61 } 64 catch ( SecurityException) { }62 catch (Exception) { } 65 63 } 66 64 … … 71 69 } 72 70 } 73 catch ( SecurityException) { }71 catch (Exception) { } 74 72 } 75 73 } -
branches/RegressionBenchmarks/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts/Prepare Hive Database.sql
r6983 r7255 232 232 GO 233 233 234 235 ALTER TRIGGER [dbo].[tr_StatisticsDeleteCascade] ON [dbo].[Statistics] INSTEAD OF DELETE AS 236 BEGIN 237 DELETE SlaveStatistics FROM deleted, SlaveStatistics WHERE deleted.StatisticsId = SlaveStatistics.StatisticsId 238 -- should also remove UserStatistics here 239 DELETE [Statistics] FROM deleted, [Statistics] WHERE deleted.StatisticsId = [Statistics].StatisticsId 240 END 241 GO 242 243 234 244 -- ============================================================ 235 245 -- Description: Create indices to speed up execution of queries
Note: See TracChangeset
for help on using the changeset viewer.