Changeset 24125 for trunk/ippTools/src
- Timestamp:
- May 9, 2009, 2:19:48 PM (17 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 3 edited
-
disttool.c (modified) (1 diff)
-
receivetool.c (modified) (4 diffs)
-
receivetoolConfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/disttool.c
r24001 r24125 488 488 PXOPT_COPY_STR(config->args, where, "-state", "state", "=="); 489 489 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 490 PXOPT_COPY_S16(config->args, where, "-fault", " distComponent.fault", "==");490 PXOPT_COPY_S16(config->args, where, "-fault", "fault", "=="); 491 491 492 492 // It might be useful to be able to query by the parameters of the underlying runs -
trunk/ippTools/src/receivetool.c
r24109 r24125 238 238 psFree(output); 239 239 240 if (!receiveFilesetInsert(config->dbh, 0, source_id, fileset, "reg", NULL, 0)) {240 if (!receiveFilesetInsert(config->dbh, 0, source_id, fileset, "reg", NULL, NULL, 0)) { 241 241 psError(PS_ERR_UNKNOWN, false, "Unable to add fileset"); 242 242 psFree(source_id_str); … … 512 512 if (psListLength(where->list)) { 513 513 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 514 psStringAppend(&query, " WHERE%s", whereClause);514 psStringAppend(&query, " AND %s", whereClause); 515 515 psFree(whereClause); 516 516 } … … 592 592 // to chanage 593 593 PXOPT_LOOKUP_S32(fault, config->args, "-fault", false, false); 594 PXOPT_LOOKUP_STR(dbinfo_uri, config->args, "-dbinfo_uri", false, false); 594 PXOPT_LOOKUP_STR(destdir, config->args, "-destdir", false, false); 595 PXOPT_LOOKUP_STR(dirinfo, config->args, "-dirinfo", false, false); 596 PXOPT_LOOKUP_STR(dbinfo, config->args, "-dbinfo", false, false); 595 597 PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false); 596 598 597 if (!fault && !d binfo_uri&& !state) {598 psError(PS_ERR_UNKNOWN, true, " one of -fault, -dbinfo_uri, -set_state are required");599 if (!fault && !dirinfo &&!dbinfo && !state) { 600 psError(PS_ERR_UNKNOWN, true, "at least one of -fault, -dirinfo, -dbinfo, -set_state are required"); 599 601 return false; 600 602 } … … 608 610 sep = ","; 609 611 } 610 if (dbinfo_uri) { 611 psStringAppend(&query, "%s dbinfo_uri = '%s'", sep, dbinfo_uri); 612 if (dirinfo) { 613 psStringAppend(&query, "%s dirinfo = '%s'", sep, dirinfo); 614 sep = ","; 615 } 616 if (dbinfo) { 617 psStringAppend(&query, "%s dbinfo = '%s'", sep, dbinfo); 612 618 sep = ","; 613 619 } -
trunk/ippTools/src/receivetoolConfig.c
r24109 r24125 85 85 psMetadataAddS64(updatefilesetArgs, PS_LIST_TAIL, "-fileset_id", 0, "define fileset_id (required)", 0); 86 86 psMetadataAddStr(updatefilesetArgs, PS_LIST_TAIL, "-set_state", 0, "define state", NULL); 87 psMetadataAddStr(updatefilesetArgs, PS_LIST_TAIL, "-dbinfo_uri", 0, "define dbinfo_uri", NULL); 87 psMetadataAddStr(updatefilesetArgs, PS_LIST_TAIL, "-destdir", 0, "define destdir", NULL); 88 psMetadataAddStr(updatefilesetArgs, PS_LIST_TAIL, "-dirinfo", 0, "define dirinfo", NULL); 89 psMetadataAddStr(updatefilesetArgs, PS_LIST_TAIL, "-dbinfo", 0, "define dbinfo", NULL); 88 90 psMetadataAddS32(updatefilesetArgs, PS_LIST_TAIL, "-fault", 0, "define fault code", 0); 89 91 … … 107 109 psMetadata *addresultArgs = psMetadataAlloc(); 108 110 psMetadataAddS64(addresultArgs, PS_LIST_TAIL, "-file_id", 0, "define receive_id (required)", 0); 111 psMetadataAddStr(addresultArgs, PS_LIST_TAIL, "-path_base", 0, "path_base for component", NULL); 109 112 psMetadataAddF32(addresultArgs, PS_LIST_TAIL, "-dtime_copy", 0, "define time to copy", NAN); 110 113 psMetadataAddF32(addresultArgs, PS_LIST_TAIL, "-dtime_extract", 0, "define time to extract", NAN);
Note:
See TracChangeset
for help on using the changeset viewer.
