Changeset 6131
- Timestamp:
- Jan 21, 2006, 1:27:12 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
p2insertDoneFrames.c (modified) (2 diffs)
-
p2insertPendingFrames.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/p2insertDoneFrames.c
r6063 r6131 3 3 4 4 // select pending frames (exposure+images) which are done/not done 5 bool p2insertDoneFrames (p2Config *config, psArray *doneFrames) {5 bool p2insertDoneFrames(p2Config *config, psArray *doneFrames) { 6 6 7 7 for (int i = 0; i < doneFrames->n; i++) { … … 11 11 psArray *doneImages = doneFrame->images; 12 12 13 p2DoneExpInsertObject(config->database, doneExposure); 13 if (!p2DoneExpInsertObject(config->database, doneExposure)) { 14 psError(PS_ERR_UNKNOWN, false, "database access failed"); 15 return false; 16 } 14 17 15 18 for (int i = 0; i < doneImages->n; i++) { 16 p2DoneImfileInsertObject(config->database, doneImages->data[i]); 19 if (!p2DoneImfileInsertObject(config->database, doneImages->data[i])) { 20 psError(PS_ERR_UNKNOWN, false, "database access failed"); 21 return false; 22 } 17 23 } 18 24 } -
trunk/ippTools/src/p2insertPendingFrames.c
r6111 r6131 6 6 // NOTE this function converts the rawFrames to pendingFrames AND inserts them 7 7 // this is useful since the table must be locked the whole time, to get the versions 8 bool p2insertPendingFrames (p2Config *config, psArray *rawFrames) {8 bool p2insertPendingFrames(p2Config *config, psArray *rawFrames) { 9 9 10 10 psMetadata *where = psMetadataAlloc(); … … 58 58 } 59 59 60 p2PendingExpInsertObject(config->database, pendingExposure); 60 if (!p2PendingExpInsertObject(config->database, pendingExposure)) { 61 psError(PS_ERR_UNKNOWN, false, "database access failed"); 62 return false; 63 } 61 64 62 65 for (int i = 0; i < pendingImages->n; i++) { 63 p2PendingImfileInsertObject(config->database, 64 pendingImages->data[i]); 66 if (!p2PendingImfileInsertObject(config->database, 67 pendingImages->data[i])) { 68 psError(PS_ERR_UNKNOWN, false, "database access failed"); 69 return false; 70 } 65 71 } 66 72 }
Note:
See TracChangeset
for help on using the changeset viewer.
