Changeset 8849 for trunk/ippTools/src/pztool.c
- Timestamp:
- Sep 19, 2006, 5:20:04 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src
- Property svn:ignore
-
old new 10 10 *.lo 11 11 p0tool 12 p1 search13 p2 search12 p1tool 13 p2tool 14 14 pxadmin 15 15 pzgetexp 16 16 pzgetimfiles 17 pz search17 pztool 18 18 dettool 19 19 pxinject
-
- Property svn:ignore
-
trunk/ippTools/src/pztool.c
r8536 r8849 3 3 #endif 4 4 5 #include <stdio.h> 6 #include <string.h> 5 7 #include <stdlib.h> 6 8 … … 59 61 psArray *summit = summitExpSelectRowObjects(config->dbh, 60 62 config->where, MAX_ROWS); 61 if (!summit) { 63 if (!summit) { 62 64 psError(PS_ERR_UNKNOWN, false, "no summitExp rows found"); \ 63 return false; 64 } 65 return false; 66 } 65 67 66 68 psArray *new = newExpSelectRowObjects(config->dbh, 67 69 config->where, MAX_ROWS); 68 if (!new) { 70 if (!new) { 69 71 psError(PS_ERR_UNKNOWN, false, "no newExp rows found"); \ 70 } 72 } 71 73 72 74 if (new) { … … 138 140 139 141 if (!newImfileInsert( 140 config->dbh, 142 config->dbh, 141 143 pendingImfile->exp_id, 142 144 pendingImfile->class, … … 147 149 psError(PS_ERR_UNKNOWN, false, "dbh access failed"); 148 150 psFree(pending); 149 goto ROLLBACK; 151 goto ROLLBACK; 150 152 } 151 153 } … … 154 156 psError(PS_ERR_UNKNOWN, false, "dbh access failed"); 155 157 psFree(pending); 156 goto ROLLBACK; 158 goto ROLLBACK; 157 159 } 158 160 psFree(pending); … … 161 163 if (!pztoolFlushPendingExp(config)) { 162 164 psError(PS_ERR_UNKNOWN, false, "pztoolFlushPendingExp() failed"); 163 goto ROLLBACK; 164 } 165 166 // point of no return 165 goto ROLLBACK; 166 } 167 168 // point of no return 167 169 if (!psDBCommit(config->dbh)) { 168 170 psError(PS_ERR_UNKNOWN, false, "database error"); 169 171 // XXX is this the right thing to do after a commit failure? 170 goto ROLLBACK; 172 goto ROLLBACK; 171 173 } 172 174
Note:
See TracChangeset
for help on using the changeset viewer.
