Changeset 25418 for trunk/ippTools
- Timestamp:
- Sep 16, 2009, 9:44:29 AM (17 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 8 edited
-
share/pxadmin_create_tables.sql (modified) (3 diffs)
-
share/regtool_pendingimfile.sql (modified) (1 diff)
-
src/pxinject.c (modified) (1 diff)
-
src/pxinjectConfig.c (modified) (1 diff)
-
src/pztool.c (modified) (3 diffs)
-
src/pztoolConfig.c (modified) (1 diff)
-
src/regtool.c (modified) (2 diffs)
-
src/regtoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/pxadmin_create_tables.sql
r25382 r25418 58 58 epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 59 59 hostname VARCHAR(64), 60 bytes INT, 61 md5sum VARCHAR(32), 60 62 PRIMARY KEY(exp_name, camera, telescope, class, class_id), 61 63 KEY(fault), … … 94 96 uri VARCHAR(255), 95 97 epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 98 bytes INT, 99 md5sum VARCHAR(32), 96 100 PRIMARY KEY(exp_id, tmp_class_id), 97 101 FOREIGN KEY(exp_id) REFERENCES newExp(exp_id) … … 237 241 raw_image_id BIGINT AUTO_INCREMENT, 238 242 magicked BIGINT, 243 bytes INT, 244 md5sum VARCHAR(32), 239 245 PRIMARY KEY(exp_id, class_id), 240 246 KEY(tmp_class_id), -
trunk/ippTools/share/regtool_pendingimfile.sql
r17573 r25418 6 6 newExp.workdir, 7 7 newImfile.tmp_class_id, 8 newImfile.uri 8 newImfile.uri, 9 newImfile.bytes, 10 newImfile.md5sum 9 11 FROM newImfile 10 12 JOIN newExp -
trunk/ippTools/src/pxinject.c
r18336 r25418 137 137 PXOPT_LOOKUP_STR(tmp_class_id, config->args, "-tmp_class_id", true, false); 138 138 PXOPT_LOOKUP_STR(uri, config->args, "-uri", true, false); 139 PXOPT_LOOKUP_S32(bytes, config->args, "-bytes", false, false); 140 PXOPT_LOOKUP_STR(md5sum, config->args, "-md5sum", false, false); 139 141 140 142 // insert with error flag state set to 0 (no errors) 141 if (!newImfileInsert(config->dbh, exp_id, tmp_class_id, uri, NULL )) {143 if (!newImfileInsert(config->dbh, exp_id, tmp_class_id, uri, NULL, bytes, md5sum)) { 142 144 psError(PS_ERR_UNKNOWN, false, "database error"); 143 145 return false; -
trunk/ippTools/src/pxinjectConfig.c
r18561 r25418 61 61 psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-tmp_class_id", 0, "define the class ID (required)", NULL); 62 62 psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-uri", 0, "define the URI (required)", NULL); 63 psMetadataAddS32(newImfileArgs, PS_LIST_TAIL, "-bytes", 0, "define the size of the file", 0); 64 psMetadataAddStr(newImfileArgs, PS_LIST_TAIL, "-md5sum", 0, "define the size of the file", NULL); 63 65 64 66 // -updatenewExp -
trunk/ippTools/src/pztool.c
r23688 r25418 401 401 PXOPT_LOOKUP_STR(hostname, config->args, "-hostname", false, false); 402 402 PXOPT_LOOKUP_BOOL(row_lock, config->args, "-row_lock", false); 403 PXOPT_LOOKUP_S32(bytes, config->args, "-bytes", false, false); 404 PXOPT_LOOKUP_STR(md5sum, config->args, "-md5sum", false, false); 403 405 404 406 // default values … … 457 459 fault, 458 460 NULL, // epoch 459 hostname 461 hostname, 462 bytes, 463 md5sum 460 464 )) { 461 465 psError(PS_ERR_UNKNOWN, false, "database error"); … … 595 599 " pzDownloadImfile.class_id," // tmp_class_id 596 600 " pzDownloadImfile.uri," // uri 597 " NULL" // epoch 601 " NULL," // epoch 602 " pzDownloadImfile.bytes," // bytes 603 " pzDownloadImfile.md5sum" // md5sum 598 604 " FROM pzDownloadImfile" 599 605 " WHERE" -
trunk/ippTools/src/pztoolConfig.c
r23688 r25418 95 95 psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-label", 0, "define the label for the chip stage", NULL); 96 96 psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-hostname", 0, "define the host that copied the image", NULL); 97 psMetadataAddS32(copydoneArgs, PS_LIST_TAIL, "-bytes", 0, "define the size in bytes for the copied image", 0); 98 psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-md5sum", 0, "define the md5 sum for the copied image", NULL); 97 99 psMetadataAddS16(copydoneArgs, PS_LIST_TAIL, "-fault", 0, "set fault code", 0); 98 100 psMetadataAddBool(copydoneArgs, PS_LIST_TAIL, "-row_lock", 0, "lock pzDownImfile rows while advancing an exposure", false); -
trunk/ippTools/src/regtool.c
r25324 r25418 238 238 PXOPT_LOOKUP_TIME(dateobs, config->args, "-dateobs", false, false); 239 239 PXOPT_LOOKUP_STR(hostname, config->args, "-hostname", false, false); 240 PXOPT_LOOKUP_S32(bytes, config->args, "-bytes", false, false); 241 PXOPT_LOOKUP_STR(md5sum, config->args, "-md5sum", false, false); 240 242 241 243 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); … … 307 309 quality, 308 310 NULL, 309 0 311 0, 312 bytes, 313 md5sum 310 314 )) { 311 315 psError(PS_ERR_UNKNOWN, false, "database error"); -
trunk/ippTools/src/regtoolConfig.c
r24922 r25418 125 125 ADD_OPT(Time, addprocessedimfileArgs, "-dateobs", "define observation time", NULL); 126 126 ADD_OPT(Str, addprocessedimfileArgs, "-hostname", "define host name", NULL); 127 ADD_OPT(Str, addprocessedimfileArgs, "-md5sum", "define md5sum", NULL); 128 ADD_OPT(S32, addprocessedimfileArgs, "-bytes", "define bytes", 0); 127 129 ADD_OPT(S16, addprocessedimfileArgs, "-fault", "set fault code", 0); 128 130 ADD_OPT(S16, addprocessedimfileArgs, "-quality", "set quality flag", 0);
Note:
See TracChangeset
for help on using the changeset viewer.
