IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2012, 11:38:18 AM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20120627/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120627/ippTools/src

  • branches/eam_branches/ipp-20120627/ippTools/src/pxtools.c

    r32565 r34241  
    301301    PXOPT_LOOKUP_STR(note, config->args,        "-set_note", false, false);
    302302
     303#ifdef DISALLOW_CHANGE_TO_UPDATE
     304    // Back in the days of magic we didn't allow state changes of Run's
     305    // to update because the interaction with destreaking was problematic
     306    // With the death of magic we can allow this now.
    303307    if ((state)&&(!strcmp(state, "update"))) {
    304308        fprintf(stderr, "'-updaterun -set_state update' is not supported.");
     
    310314        exit(1);
    311315    }
    312 
     316#endif
    313317    psString dist_group = NULL;
    314318    if (has_dist_group) {
     
    350354    psString joinHook = psStringCopy("");
    351355    psString fileWhere = NULL;
     356
     357#ifdef DISALLOW_CHANGE_TO_UPDATE
    352358    if (state && !strcmp(state, "update")) {
    353359        psStringAppend(&joinHook, "\n JOIN %s USING(%s)", fileTable, idColumn);
     
    355361        psStringAppend(&fileWhere, "AND %s.data_state = 'cleaned'", fileTable);
    356362    }
     363#endif
    357364
    358365    psString whereClause =  psDBGenerateWhereSQL(where, NULL);
Note: See TracChangeset for help on using the changeset viewer.