Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/20/11 11:45:18 (13 years ago)
Author:
gkronber
Message:

#1081 merged r7103:7209 from trunk into time series branch

Location:
branches/HeuristicLab.TimeSeries
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TimeSeries

  • branches/HeuristicLab.TimeSeries/HeuristicLab.Clients.Hive/3.3/HiveJobs/EngineHiveTask.cs

    r6976 r7213  
    2222using System;
    2323using System.Collections.Generic;
    24 using System.Linq;
    2524using HeuristicLab.Common;
    2625using HeuristicLab.Core;
     
    5554      IEnumerable<Type> usedTypes;
    5655
    57       // clone operation and remove unnecessary scopes; don't do this earlier to avoid memory problems
    58       //lock (locker) {
    59         ((IAtomicOperation)ItemTask.InitialOperation).Scope.Parent = parentScopeClone;
    60         ItemTask.InitialOperation = (IOperation)ItemTask.InitialOperation.Clone();
    61         ((IAtomicOperation)ItemTask.InitialOperation).Scope.ClearParentScopes();
    62         jobData.Data = PersistenceUtil.Serialize(ItemTask, out usedTypes);
    63       //}
    64 
    65       // add type objects from object graph to work around ticket #1527
    66       var typeObjects = ItemTask.GetObjectGraphObjects().OfType<Type>();
    67       usedTypes = new List<Type>(usedTypes).Union(typeObjects);
     56      // clone operation and remove unnecessary scopes; don't do this earlier to avoid memory problems     
     57      ((IAtomicOperation)ItemTask.InitialOperation).Scope.Parent = parentScopeClone;
     58      ItemTask.InitialOperation = (IOperation)ItemTask.InitialOperation.Clone();
     59      ((IAtomicOperation)ItemTask.InitialOperation).Scope.ClearParentScopes();
     60      jobData.Data = PersistenceUtil.Serialize(ItemTask, out usedTypes);
    6861
    6962      PluginUtil.CollectDeclaringPlugins(plugins, usedTypes);
    70      
    7163      return jobData;
    7264    }
Note: See TracChangeset for help on using the changeset viewer.