Changeset 9485 for branches/HivePerformance/sources
- Timestamp:
- 05/10/13 13:27:25 (12 years ago)
- Location:
- branches/HivePerformance/sources
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HivePerformance/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HeuristicLab.Services.Hive.DataAccess-3.3.csproj
r8957 r9485 149 149 <ItemGroup> 150 150 <Content Include="SQL Scripts\Initialize Hive Database.sql" /> 151 <Content Include="SQL Scripts\Migrate to Filestream.sql" /> 151 152 <Content Include="SQL Scripts\Prepare Hive Database.sql" /> 152 153 </ItemGroup> -
branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/OptimizedHiveDao.cs
r9434 r9485 241 241 242 242 public bool SlaveHasToShutdownComputer(Guid slaveId) { 243 return Db.ExecuteQuery<int>(DowntimeQueryString, slaveId, DateTime.Now, DowntimeType.Shutdown ).First() > 0;243 return Db.ExecuteQuery<int>(DowntimeQueryString, slaveId, DateTime.Now, DowntimeType.Shutdown.ToString()).FirstOrDefault() > 0; 244 244 } 245 245 246 246 public bool SlaveIsAllowedToCalculate(Guid slaveId) { 247 return Db.ExecuteQuery<int>(DowntimeQueryString, slaveId, DateTime.Now, DowntimeType.Offline ).First() == 0;247 return Db.ExecuteQuery<int>(DowntimeQueryString, slaveId, DateTime.Now, DowntimeType.Offline.ToString()).FirstOrDefault() == 0; 248 248 } 249 249 #endregion
Note: See TracChangeset
for help on using the changeset viewer.