Changeset 18247 for trunk/pstamp/src
- Timestamp:
- Jun 20, 2008, 3:08:02 PM (18 years ago)
- Location:
- trunk/pstamp/src
- Files:
-
- 2 edited
-
pstampfinish.c (modified) (3 diffs)
-
pstampparse.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/src/pstampfinish.c
r18243 r18247 26 26 psString dsRoot; 27 27 psString dsProduct; 28 psString dbName; 28 29 int exitStatus; 29 30 } psrfOptions; … … 70 71 return NULL; 71 72 } 73 psBool status; 74 options->dbName = psMetadataLookupStr(&status, options->config->complete, "DBNAME"); 72 75 73 76 if ((argnum = psArgumentGet(argc, argv, "-mode"))) { … … 265 268 psString command = NULL; 266 269 267 psStringAppend(&command, "dsreg --add --type PSRESULTS --product %s --fileset %s", 268 options->dsProduct, fileset_id); 269 270 printf("command is: %s\n", command); 270 psStringAppend(&command, "dsreg --dbname %s --add --type PSRESULTS --product %s --fileset %s", 271 options->dbName, options->dsProduct, fileset_id); 272 273 if (options->verbose) { 274 fprintf(stderr, "command is: %s\n", command); 275 } 271 276 272 277 // open a pipe to dsreg and set up the output fileset -
trunk/pstamp/src/pstampparse.c
r18243 r18247 64 64 } 65 65 66 // XXX: need to sort out the interactions of this mode option and the JOB_TYPE 67 // listed in the request file. 66 68 if ((argnum = psArgumentGet(argc, argv, "-mode"))) { 67 69 psArgumentRemove(argnum, &argc, argv); … … 629 631 psStringAppend(&cmd, " -args '%s'", commandArgs); 630 632 } 633 // XXX We may want to have the data store name be different than the default DB 634 psBool status; 635 psString dbName = psMetadataLookupStr(&status, options->config->complete, "DBNAME"); 636 fprintf(stderr, "\n\n dbName is %s\n", dbName); 637 if (dbName) { 638 psStringAppend(&cmd, " -dbname %s", dbName); 639 } 640 631 641 psStringAppend(&cmd, " > /dev/null"); 632 642
Note:
See TracChangeset
for help on using the changeset viewer.
