Changeset 17789 for trunk/ippTools/src/warptool.c
- Timestamp:
- May 23, 2008, 3:36:44 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/warptool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/warptool.c
r17782 r17789 525 525 526 526 PXOPT_LOOKUP_STR(mapfile, config->args, "-mapfile", false, false); 527 PXOPT_LOOKUP_STR(warp_id, config->args, "-warp_id", false, false); 528 PXOPT_LOOKUP_STR(cam_id, config->args, "-cam_id", false, false); 529 PXOPT_LOOKUP_S16(code, config->args, "-code", false, false); 527 530 528 531 if (!psDBTransaction(config->dbh)) { … … 531 534 } 532 535 533 if (!parseAndInsertSkyCellMap(config, mapfile)) { 534 psError(PS_ERR_UNKNOWN, false, "failed to inject mapfile: %s into the database", mapfile); 535 // rollback 536 if (!psDBRollback(config->dbh)) { 537 psError(PS_ERR_UNKNOWN, false, "database error"); 538 } 539 return false; 536 if (code == 0) { 537 if (!parseAndInsertSkyCellMap(config, mapfile)) { 538 psError(PS_ERR_UNKNOWN, false, "failed to inject mapfile: %s into the database", mapfile); 539 // rollback 540 if (!psDBRollback(config->dbh)) { 541 psError(PS_ERR_UNKNOWN, false, "database error"); 542 } 543 return false; 544 } 545 } else { 546 warpSkyCellMapInsert(config->dbh, (psS64)atoll(warp_id), NULL, NULL, 547 (psS64)atoll(cam_id), NULL, code); 540 548 } 541 549
Note:
See TracChangeset
for help on using the changeset viewer.
