Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/10/11 15:20:01 (13 years ago)
Author:
ascheibe
Message:

#1233

  • fixed bug that occurred when setting the Heartbeat Interval for a group of slaves
  • slave reports HbInterval now correct on first start
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.3/HiveService.cs

    r6893 r6897  
    496496      authen.AuthenticateForAnyRole(HiveRoles.Administrator);
    497497      trans.UseTransaction(() => {
    498         UpdateSlaveHBs(slaveGroup);
    499       });
    500     }
    501 
    502     private void UpdateSlaveHBs(Resource r) {
    503       foreach (Resource resource in dao.GetChildResources(r.Id)) {
    504         if (resource is SlaveGroup) {
    505           resource.HbInterval = r.HbInterval;
    506           dao.UpdateSlaveGroup(resource as SlaveGroup);
    507           UpdateSlaveHBs(resource);
    508         } else if (resource is Slave) {
    509           resource.HbInterval = r.HbInterval;
    510           dao.UpdateSlave(resource as Slave);
    511         }
    512       }
     498        dao.UpdateSlaveGroup(slaveGroup);
     499      });
    513500    }
    514501
Note: See TracChangeset for help on using the changeset viewer.