Changeset 16242 for trunk/ippTools/src/camtool.c
- Timestamp:
- Jan 25, 2008, 2:41:18 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/camtool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/camtool.c
r16170 r16242 27 27 28 28 #include "pxtools.h" 29 #include "pxwarp.h" 29 30 #include "camtool.h" 30 31 … … 485 486 code 486 487 ); 487 psFree(pendingRow);488 488 489 489 if (!camProcessedExpInsertObject(config->dbh, row)) { … … 494 494 psError(PS_ERR_UNKNOWN, false, "database error"); 495 495 psFree(row); 496 psFree(pendingRow); 496 497 return false; 497 498 } … … 501 502 psError(PS_ERR_UNKNOWN, false, "failed to change camRun.state for cam_id: %" PRId64, row->cam_id); 502 503 psFree(row); 503 return false; 504 } 505 504 psFree(pendingRow); 505 return false; 506 } 507 508 // should we stop here or proceed on to the warp stage? 509 // NULL for end_stage means go as far as possible 510 // we can't start a warp run unlesss tess_id is defined 511 if ((pendingRow->end_stage && psStrcasestr(pendingRow->end_stage, "cam")) 512 || pendingRow->tess_id == NULL) { 513 psFree(row); 514 psFree(pendingRow); 515 if (!psDBCommit(config->dbh)) { 516 psError(PS_ERR_UNKNOWN, false, "database error"); 517 return false; 518 } 519 520 return true; 521 } 506 522 psFree(row); 523 // else continue on... 524 525 if (!pxwarpQueueByCamID(config, 526 pendingRow->cam_id, 527 pendingRow->workdir, 528 pendingRow->dvodb, 529 pendingRow->tess_id, 530 pendingRow->end_stage 531 )) { 532 // rollback 533 if (!psDBRollback(config->dbh)) { 534 psError(PS_ERR_UNKNOWN, false, "database error"); 535 } 536 psError(PS_ERR_UNKNOWN, false, "failed to queue new warpRun"); 537 psFree(pendingRow); 538 return false; 539 } 540 psFree(pendingRow); 507 541 508 542 if (!psDBCommit(config->dbh)) {
Note:
See TracChangeset
for help on using the changeset viewer.
