3295
3296
switch compareFn(sourceTask, targetTask) {
3298
>
// Task match, carry over status.
3299
>
targetTask.PhysicalTaskStatus = sourceTask.PhysicalTaskStatus
3300
>
// Use existing task data to avoid taskValueCache miss, since the cache uses
3301
>
// *DataBlob as the key.
3302
>
// Otherwise we have to clear cache for all tasks in the node, and re-deserialize
3303
>
// tasks later.
3304
>
targetTask.Data = sourceTask.Data
3305
>
sourceIdx++
3306
>
targetIdx++
3307
case -1:
3308
// Source task has a smaller key, meaning the task has been deleted.