Changeset 37709 for trunk/ippTools/src/addtool.c
- Timestamp:
- Dec 2, 2014, 3:27:44 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/addtool.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/addtool.c
r37551 r37709 373 373 //needs to be checked HAF xxx 374 374 if (strcmp(stage,"diff") == 0) { 375 psStringAppend(&query, " GROUP BY diff_id "); //this needs checking, but I think it shoul be fine? it groups by lots of stuff (including stack - we only want one of each stack in there375 psStringAppend(&query, " GROUP BY diff_id, diff_skyfile_id "); //this needs checking, but I think it shoul be fine? it groups by lots of stuff (including stack - we only want one of each stack in there 376 376 } 377 377 //needs to be checked HAF xxx 378 378 if (strcmp(stage,"fullforce") == 0) { 379 psStringAppend(&query, " GROUP BY ff_id, skycal_id "); //this needs checking, but I think it shoul be fine? it groups by lots of stuff (including stack - we only want one of each stack in there379 psStringAppend(&query, " GROUP BY ff_id, warp_id "); //this needs checking, but I think it shoul be fine? it groups by lots of stuff (including stack - we only want one of each stack in there 380 380 } 381 381 … … 535 535 536 536 if (strcmp(stage,"diff") == 0) { 537 537 538 for (long i = 0; i < psArrayLength(output); i++) { 538 539 psMetadata *md = output->data[i]; 539 540 540 541 diffRunRow *row = diffRunObjectFromMetadata(md); 541 542 542 543 if (!row) { 543 psError(PS_ERR_UNKNOWN, false, "failed to convert metadata into skycalRun");544 psError(PS_ERR_UNKNOWN, false, "failed to convert metadata into diffRun"); 544 545 psFree(output); 545 546 return false; … … 568 569 569 570 if (!row) { 570 psError(PS_ERR_UNKNOWN, false, "failed to convert metadata into skycalRun");571 psError(PS_ERR_UNKNOWN, false, "failed to convert metadata into fullforceRun"); 571 572 psFree(output); 572 573 return false; … … 784 785 785 786 if (strcmp(stage,"diff") == 0) { 787 786 788 for (long i = 0; i < psArrayLength(output); i++) { 787 789 psMetadata *md = output->data[i]; 788 790 psS64 stage_id =0; 789 790 diffRunRow *row = diffRunObjectFromMetadata(md); 791 stage_id = row->diff_id; 791 // psS64 stage_extra1 = 0; 792 diffRunRow *row = diffRunObjectFromMetadata(md); 793 stage_id = row->diff_id; 794 bool status = false; 795 psS32 stage_extra1 = psMetadataLookupS32(&status, md, "diff_skyfile_id"); 796 if (!status) { 797 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item diff_skyfile_id"); 798 return false; 799 } 800 792 801 793 802 if (!row) { … … 796 805 return false; 797 806 } 798 807 799 808 // queue the exp 800 809 if (!pxaddQueueByCamID(config, 801 810 stage, 802 811 stage_id, 803 0,812 stage_extra1, 804 813 workdir ? workdir : row->workdir, 805 814 reduction ? reduction : row->reduction, … … 831 840 psS64 stage_id =0; 832 841 833 fullForceRunRow *row = fullForceRunObjectFromMetadata(md); 834 stage_id = row->ff_id; 835 842 fullForceRunRow *row = fullForceRunObjectFromMetadata(md); 843 stage_id = row->ff_id; 844 bool status = false; 845 psS32 stage_extra1 = psMetadataLookupS32(&status, md, "warp_id"); 846 if (!status) { 847 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item warp_id"); 848 return false; 849 } 850 836 851 if (!row) { 837 852 psError(PS_ERR_UNKNOWN, false, "failed to convert metadata into skycalRun"); … … 844 859 stage, 845 860 stage_id, 846 0,861 stage_extra1, 847 862 workdir ? workdir : row->workdir, 848 863 reduction ? reduction : row->reduction,
Note:
See TracChangeset
for help on using the changeset viewer.
