IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 15, 2010, 9:53:06 AM (16 years ago)
Author:
bills
Message:

move check for dependent needs to be destreaked so that it can take the state
of the component into account. destreaking is required if component has magicked < 1
or the client requires it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstampparse.pl

    r29330 r29429  
    805805{
    806806    my ($r_jobState, $r_fault, $r_dep_id, $imagedb, $state, $stage, $stage_id, $component, $need_magic) = @_;
    807 
    808     if (($stage ne 'chip') and ($stage ne 'raw')) {
    809         # XXX: The update process for warp and subsequent stages requires that destreaking to be performed
    810         # because the -pending queries require the inputs to have magicked >= 0
    811         # This is too conservative. For example stage is warp and the warp has never been destreaked we don't
    812         # need magic either
    813         # The case of stack-stack diffs not needing to be destreaked is taken care of in pstamp_checkdependent
    814         # maybe we should put all of the smarts there and interpret the need_magic flag in the dependent as
    815         # "The client needs to have magic performed" and let
    816         # XXX: note the very nasty hard coding of gpc1
    817         $need_magic = 1 if $imagedb eq 'gpc1';
    818     }
    819807
    820808    # chipRun's can be in full state if destreaking is necessary
     
    913901                    # cause the image to be re-made
    914902                    # set up to queue an update run
     903                    my $require_magic = ($need_magic or $image->{magicked});
    915904                    get_dependent(\$$r_newState, \$$r_fault, $r_dep_id, $image->{imagedb},
    916                         $run_state, $stage, $image->{stage_id}, $image->{component}, $need_magic);
     905                        $run_state, $stage, $image->{stage_id}, $image->{component}, $require_magic );
    917906                }
    918907            }
Note: See TracChangeset for help on using the changeset viewer.