Changeset 10029
- Timestamp:
- Nov 16, 2006, 3:59:09 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pzgetexp.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pzgetexp.c
r10020 r10029 84 84 lastFileSet = psMetadataLookupStr(&status, output->data[0], "exp_id"); 85 85 } 86 87 psFree(output); 86 88 } 87 89 … … 106 108 if (!output) { 107 109 psError(PS_ERR_UNKNOWN, true, "popen() failed"); 108 goto FAIL;110 return false; 109 111 } 110 112 psString cmdOutput = psSlurpFile(output); … … 116 118 // XXX not nessicarily an error 117 119 psError(PS_ERR_UNKNOWN, true, "no new fileSet/exp IDs"); 118 goto FAIL;120 return false; 119 121 } 120 122 if (!psArrayLength(newSummitExps)) { … … 132 134 psError(PS_ERR_UNKNOWN, false, "database error"); 133 135 psFree(newSummitExps); 134 goto FAIL;136 return false; 135 137 } 136 138 } … … 143 145 psError(PS_ERR_UNKNOWN, false, "database error"); 144 146 psFree(newSummitExps); 145 goto FAIL;147 return false; 146 148 } 147 149 // sanity check that we actually inserted something … … 149 151 psError(PS_ERR_UNKNOWN, false, "database error -- we should have inserted at least one row"); 150 152 psFree(newSummitExps); 151 goto FAIL;153 return false; 152 154 } 153 155 } … … 163 165 " incoming.exp_id," 164 166 " incoming.camera," 165 " incoming.telescope," 166 " gentag(incoming.exp_id)" 167 " incoming.telescope" 167 168 " FROM incoming" 168 169 " LEFT JOIN summitExp" … … 175 176 if (!p_psDBRunQuery(config->dbh, query)) { 176 177 psError(PS_ERR_UNKNOWN, false, "database error"); 177 goto FAIL;178 return false; 178 179 } 179 180 } … … 196 197 if (!p_psDBRunQuery(config->dbh, query)) { 197 198 psError(PS_ERR_UNKNOWN, false, "database error"); 198 goto FAIL; 199 } 200 } 201 202 psFree(config); 203 204 exit(EXIT_SUCCESS); 205 206 FAIL: 207 psFree(config); 208 209 exit(EXIT_FAILURE); 199 return false; 200 } 201 } 202 203 return true; 210 204 } 211 205
Note:
See TracChangeset
for help on using the changeset viewer.
