IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25567 for trunk/ippTools


Ignore:
Timestamp:
Sep 24, 2009, 4:27:56 PM (17 years ago)
Author:
bills
Message:

fix some problems with distribution that were introduced by the removal of table rcDSProduct

Location:
trunk/ippTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/disttool_pendingfileset.sql

    r25493 r25567  
    66    CONCAT_WS('.', distRun.outroot, CONVERT(distRun.dist_id, CHAR)) as dist_dir,
    77    rcDestination.name AS product_name,
    8     rcDestination.prod_id,
     8    rcDestination.dest_id,
    99    rcDestination.dbname AS ds_dbname,
    1010    rcDestination.dbhost AS ds_dbhost
  • trunk/ippTools/src/disttool.c

    r25517 r25567  
    903903    // required values
    904904    PXOPT_LOOKUP_S64(dist_id, config->args, "-dist_id", true, false);
    905     PXOPT_LOOKUP_S64(prod_id, config->args, "-prod_id", true, false);
     905    PXOPT_LOOKUP_S64(dest_id, config->args, "-dest_id", true, false);
    906906
    907907    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
     
    913913            0,          // fs_id
    914914            dist_id,
    915             prod_id,
     915            dest_id,
    916916            name,
    917917            "full",
     
    928928    PXOPT_COPY_S64(config->args, where, "-fs_id", "fs_id", "==");
    929929    PXOPT_COPY_S64(config->args, where, "-dist_id", "rcDSFileset.dist_id", "==");
    930     PXOPT_COPY_S64(config->args, where, "-prod_id", "prod_id", "==");
     930    PXOPT_COPY_S64(config->args, where, "-dest_id", "dest_id", "==");
    931931    PXOPT_COPY_STR(config->args, where, "-stage", "stage", "==");;
    932932    PXOPT_COPY_S64(config->args, where, "-stage_id", "stage_id", "==");
     
    10561056    PXOPT_COPY_S64(config->args, where, "-dist_id",  "dist_id", "==");
    10571057    PXOPT_COPY_S64(config->args, where, "-dest_id",  "dest_id", "==");
    1058     PXOPT_COPY_S64(config->args, where, "-prod_id",  "prod_id", "==");
    10591058    PXOPT_COPY_S64(config->args, where, "-target_id","target_id", "==");
    10601059    PXOPT_COPY_S64(config->args, where, "-fs_id",    "fs_id", "==");
     
    14551454    psMetadata *where = psMetadataAlloc();
    14561455    PXOPT_COPY_S64(config->args, where, "-dest_id", "dest_id", "==");
    1457     PXOPT_COPY_S64(config->args, where, "-prod_id", "prod_id", "==");
    14581456
    14591457    PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false);
     
    14771475    // last_fileset normally gets set by updatercrunMode
    14781476    // Allowing it to be set here might cause problems
    1479     // especially since we are allowing selection by prod_id
     1477    // especially since we are allowing selection by dest_id
    14801478    if (last_fileset) {
    14811479        psStringAppend(&query, " %s last_fileset = '%s'", sep, last_fileset);
  • trunk/ippTools/src/disttoolConfig.c

    r25510 r25567  
    146146    psMetadata *addfilesetArgs = psMetadataAlloc();
    147147    psMetadataAddS64(addfilesetArgs, PS_LIST_TAIL, "-dist_id", 0, "define dist_id", 0);
    148     psMetadataAddS64(addfilesetArgs, PS_LIST_TAIL, "-prod_id", 0, "define prod_id", 0);
     148    psMetadataAddS64(addfilesetArgs, PS_LIST_TAIL, "-dest_id", 0, "define dest_id", 0);
    149149    psMetadataAddStr(addfilesetArgs, PS_LIST_TAIL, "-name",    0, "define file name", NULL);
    150150    psMetadataAddS32(addfilesetArgs, PS_LIST_TAIL, "-fault",   0, "define fault code", 0);
     
    161161    psMetadataAddS64(revertfilesetArgs, PS_LIST_TAIL, "-fs_id",   0, "define fs_id", 0);
    162162    psMetadataAddS64(revertfilesetArgs, PS_LIST_TAIL, "-dist_id", 0, "define dist_id", 0);
    163     psMetadataAddS64(revertfilesetArgs, PS_LIST_TAIL, "-prod_id", 0, "define dist_id", 0);
     163    psMetadataAddS64(revertfilesetArgs, PS_LIST_TAIL, "-dest_id", 0, "define dist_id", 0);
    164164    psMetadataAddStr(revertfilesetArgs, PS_LIST_TAIL, "-stage",   0, "define stage", NULL);
    165165    psMetadataAddS64(revertfilesetArgs, PS_LIST_TAIL, "-stage_id",0, "define stage_id", 0);
     
    173173    psMetadataAddS64(queuercrunArgs, PS_LIST_TAIL, "-dist_id",   0, "define dist_id", 0);
    174174    psMetadataAddS64(queuercrunArgs, PS_LIST_TAIL, "-dest_id",   0, "define dest_id", 0);
    175     psMetadataAddS64(queuercrunArgs, PS_LIST_TAIL, "-prod_id",   0, "define prod_id", 0);
    176175    psMetadataAddS64(queuercrunArgs, PS_LIST_TAIL, "-target_id", 0, "define target_id", 0);
    177176    psMetadataAddS64(queuercrunArgs, PS_LIST_TAIL, "-fs_id",     0, "define fs_id", 0);
Note: See TracChangeset for help on using the changeset viewer.