IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 24, 2012, 3:27:58 PM (14 years ago)
Author:
bills
Message:

Allow -updaterun modes of the various tools to -set_state update.
This was disallowed previously due to dangerous interactions with
magic. Now it is useful allow the postage stamp server to call off cleanup
for files that it needs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxtools.c

    r32565 r34197  
    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.