- Timestamp:
- Apr 2, 2013, 3:01:21 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130307
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/pstamptool.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130307
- Property svn:mergeinfo changed
/trunk (added) merged: 35269-35270,35277,35294-35295,35297-35302,35304-35308,35311,35315,35317-35318,35325,35328-35332,35334-35335,35337
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130307/ippTools/src
- Property svn:mergeinfo changed
/trunk/ippTools/src (added) merged: 35295,35297-35298,35304,35308,35318
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130307/ippTools/src/pstamptool.c
r34123 r35350 287 287 PXOPT_LOOKUP_S64(ds_id, config->args, "-ds_id", false, false); 288 288 289 PXOPT_LOOKUP_STR(username, config->args, "-username", false, false); 290 PXOPT_LOOKUP_S64(proj_id, config->args, "-proj_id", false, false); 291 292 psTime *now = psTimeGetNow(PS_TIME_TAI); 293 289 294 if (!pstampRequestInsert(config->dbh, 290 295 0, // req_id … … 297 302 uri, 298 303 NULL, // outdir 299 NULL, // timestamp 304 username, 305 proj_id, 306 now, // registered 307 now, // timestamp 300 308 0 // fault 301 309 )) { … … 444 452 PXOPT_COPY_S64(config->args, where, "-req_id", "req_id", "=="); 445 453 PXOPT_COPY_S64(config->args, where, "-not_req_id", "req_id", "!="); 446 PXOPT_COPY_STR(config->args, where, "-name", "name", "=="); 454 PXOPT_COPY_STR(config->args, where, "-name", "name", "LIKE"); 455 PXOPT_COPY_STR(config->args, where, "-username", "username", "=="); 456 PXOPT_COPY_STR(config->args, where, "-state", "state", "=="); 447 457 448 458 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 450 460 451 461 if (!psListLength(where->list)) { 452 psError(PS_ERR_UNKNOWN, true, " -req_id or -name must be supplied");462 psError(PS_ERR_UNKNOWN, true, "search paramters are required"); 453 463 return false; 454 464 } … … 482 492 if (!psArrayLength(output)) { 483 493 psTrace("pstamptool", PS_LOG_INFO, "request not found"); 484 // This causes main to exit with PS_EXIT_DATA_ERROR which the script islooking for494 // This causes main to exit with PS_EXIT_DATA_ERROR which the pstamp scripts are looking for 485 495 psError(PXTOOLS_ERR_CONFIG, true, "request not found"); 486 496 psFree(output); 487 // we return false so that the caller can determine that a request does not exist497 // we return false so that the caller can easily determine that a request does not exist 488 498 return false; 489 499 } … … 567 577 PXOPT_LOOKUP_STR(label, config->args, "-set_label", false, false); 568 578 PXOPT_LOOKUP_STR(outProduct, config->args, "-set_outProduct", false, false); 569 PXOPT_LOOKUP_S16(fault, config->args, "-set_fault", false, false);579 PXOPT_LOOKUP_S16(fault, config->args, "-set_fault", false, false); 570 580 PXOPT_LOOKUP_STR(uri, config->args, "-set_uri", false, false); 571 PXOPT_LOOKUP_STR(outdir, config->args, "-set_outdir", false, false);581 PXOPT_LOOKUP_STR(outdir, config->args, "-set_outdir", false, false); 572 582 PXOPT_LOOKUP_STR(name, config->args, "-set_name", false, false); 583 PXOPT_LOOKUP_STR(username, config->args, "-set_username", false, false); 573 584 PXOPT_LOOKUP_STR(reqType, config->args, "-set_reqType", false, false); 574 PXOPT_LOOKUP_BOOL(clearfault,config->args, "-clearfault", false);575 576 if (!state && !label && !outProduct && !fault && !uri && !outdir && !name && ! reqType && !clearfault) {585 PXOPT_LOOKUP_BOOL(clearfault,config->args, "-clearfault", false); 586 587 if (!state && !label && !outProduct && !fault && !uri && !outdir && !name && !username && !reqType && !clearfault) { 577 588 psError(PS_ERR_UNKNOWN, true, "at least one set option is required"); 578 589 return false; … … 584 595 PXOPT_COPY_S32(config->args, where, "-fault", "fault", "=="); 585 596 PXOPT_COPY_STR(config->args, where, "-state", "state", "=="); 586 PXOPT_COPY_STR(config->args, where, "-reqType", "reqType", "=="); 587 PXOPT_COPY_STR(config->args, where, "-name", "name", "LIKE"); 597 PXOPT_COPY_STR(config->args, where, "-reqType", "reqType", "=="); 598 PXOPT_COPY_STR(config->args, where, "-name", "name", "LIKE"); 599 PXOPT_COPY_STR(config->args, where, "-username", "username", "=="); 588 600 PXOPT_COPY_TIME(config->args, where, "-timestamp_begin", "timestamp", ">="); 589 601 PXOPT_COPY_TIME(config->args, where, "-timestamp_end", "timestamp", "<=");
Note:
See TracChangeset
for help on using the changeset viewer.
