- Timestamp:
- Aug 8, 2008, 5:08:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080719/ippTools/src/dettool_residimfile.c
r18643 r18991 76 76 77 77 78 PXOPT_LOOKUP_S TR(det_id, config->args, "-det_id", true, false); // required78 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); // required 79 79 PXOPT_LOOKUP_S32(iteration, config->args, "-iteration", false, false); 80 PXOPT_LOOKUP_S TR(exp_id, config->args, "-exp_id", true, false); // required80 PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); // required 81 81 PXOPT_LOOKUP_STR(class_id, config->args, "-class_id", true, false); // required 82 82 PXOPT_LOOKUP_S16(code, config->args, "-code", false, false); … … 102 102 PXOPT_LOOKUP_STR(path_base, config->args, "-path_base", false, false); 103 103 104 if (!detResidImfileInsert(config->dbh, 105 (psS64)atoll(det_id), 104 if (!detResidImfileInsert( 105 config->dbh, 106 det_id, 106 107 iteration, 107 (psS64)atoll(exp_id),108 exp_id, 108 109 class_id, 109 110 uri, … … 127 128 user_5, 128 129 path_base, 130 "full", 129 131 code 130 132 )) { … … 142 144 143 145 psMetadata *where = psMetadataAlloc(); 144 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");146 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 145 147 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 146 PXOPT_COPY_S TR(config->args, where, "-exp_id", "exp_id", "==");148 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 147 149 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 148 150 PXOPT_COPY_STR(config->args, where, "-recip", "recipe", "=="); … … 225 227 226 228 psMetadata *where = psMetadataAlloc(); 227 PXOPT_COPY_S TR(config->args, where, "-det_id", "det_id", "==");229 PXOPT_COPY_S64(config->args, where, "-det_id", "det_id", "=="); 228 230 PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "=="); 229 PXOPT_COPY_S TR(config->args, where, "-exp_id", "exp_id", "==");231 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 230 232 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 231 233 PXOPT_COPY_S16(config->args, where, "-code", "fault", "=="); … … 259 261 } 260 262 263 bool updateresidimfileMode(pxConfig *config) 264 { 265 PS_ASSERT_PTR_NON_NULL(config, NULL); 266 267 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); 268 PXOPT_LOOKUP_S32(iteration, config->args, "-iteration", true, false); 269 PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); 270 PXOPT_LOOKUP_STR(class_id, config->args, "-class_id", true, false); 271 PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", true, false); 272 if (!setResidImfileDataState(config, det_id, iteration, exp_id, class_id, data_state)) { 273 return false; 274 } 275 return true; 276 } 277 261 278 bool pendingcleanup_residimfileMode(pxConfig *config) 262 279 { 263 280 PS_ASSERT_PTR_NON_NULL(config, NULL); 264 281 265 PXOPT_LOOKUP_S64(chip_id, config->args, "-chip_id", false, false);266 282 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 267 283 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 268 284 269 285 psMetadata *where = psMetadataAlloc(); 270 if (chip_id) { 271 PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "=="); 272 } 273 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 286 PXOPT_COPY_S64(config->args, where, "-det_id", "detProcessedImfile.det_id", "=="); 274 287 275 288 psString query = pxDataGet("dettool_pendingcleanup_residimfile.sql"); … … 312 325 313 326 // negative simple so the default is true 314 if (!ippdbPrintMetadatas(stdout, output, "det PendingCleanup_residimfile", !simple)) {327 if (!ippdbPrintMetadatas(stdout, output, "detCleanupResidImfile", !simple)) { 315 328 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 316 329 psFree(output);
Note:
See TracChangeset
for help on using the changeset viewer.
