Changeset 42387 for trunk/ippTools/src
- Timestamp:
- Feb 8, 2023, 12:14:39 PM (3 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 6 edited
- 5 copied
-
. (modified) (1 prop)
-
src (modified) (2 props)
-
src/Makefile.am (modified) (5 diffs)
-
src/fpcamtool.c (copied) (copied from branches/eam_branches/ipp-20220316/ippTools/src/fpcamtool.c )
-
src/fpcamtool.h (copied) (copied from branches/eam_branches/ipp-20220316/ippTools/src/fpcamtool.h )
-
src/fpcamtoolConfig.c (copied) (copied from branches/eam_branches/ipp-20220316/ippTools/src/fpcamtoolConfig.c )
-
src/pxadmin.c (modified) (1 diff)
-
src/pxcam.c (modified) (1 diff)
-
src/pxfpcam.c (copied) (copied from branches/eam_branches/ipp-20220316/ippTools/src/pxfpcam.c )
-
src/pxfpcam.h (copied) (copied from branches/eam_branches/ipp-20220316/ippTools/src/pxfpcam.h )
-
src/pzgetexp.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20220316/ippTools (added) merged: 42166,42193,42195-42197,42205-42207,42213,42258,42367
- Property svn:mergeinfo changed
-
trunk/ippTools/src
- Property svn:ignore
-
old new 49 49 fftool 50 50 remotetool 51 51 fpcamtool
-
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20220316/ippTools/src (added) merged: 42166,42195-42197,42205,42207,42258,42367
- Property svn:ignore
-
trunk/ippTools/src/Makefile.am
r36511 r42387 35 35 releasetool \ 36 36 fftool \ 37 fpcamtool \ 37 38 remotetool 38 39 … … 55 56 pxtoolsErrorCodes.h \ 56 57 pxtree.h \ 58 pxfpcam.h \ 57 59 pxwarp.h 58 60 … … 91 93 releasetool.h \ 92 94 fftool.h \ 95 fpcamtool.h \ 93 96 remotetool.h 94 97 … … 116 119 pxtoolsErrorCodes.c \ 117 120 pxtree.c \ 121 pxfpcam.c \ 118 122 pxwarp.c 119 123 … … 174 178 camtool.c \ 175 179 camtoolConfig.c 180 181 fpcamtool_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULES_CFLAGS) $(IPPDB_CFLAGS) 182 fpcamtool_LDADD = $(PSLIB_LIBS) $(PSMODULES_LIBS) $(IPPDB_LIBS) libpxtools.la 183 fpcamtool_SOURCES = \ 184 fpcamtool.c \ 185 fpcamtoolConfig.c 176 186 177 187 faketool_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULES_CFLAGS) $(IPPDB_CFLAGS) -
trunk/ippTools/src/pxadmin.c
r26981 r42387 184 184 psString dbName = name->data.str; 185 185 186 // if name is e.g., gpc1, strcasecmp returns FALSE 187 bool allowDelete = true; 188 allowDelete = allowDelete && strcasecmp(dbName, "gpc1"); 189 allowDelete = allowDelete && strcasecmp(dbName, "gpc2"); 190 allowDelete = allowDelete && strcasecmp(dbName, "nebulous"); 191 allowDelete = allowDelete && strcasecmp(dbName, "isp"); 192 allowDelete = allowDelete && strcasecmp(dbName, "ssp"); 193 allowDelete = allowDelete && strcasecmp(dbName, "uic"); 194 allowDelete = allowDelete && strcasecmp(dbName, "hsc_v1"); 195 allowDelete = allowDelete && strcasecmp(dbName, "megacam_v1"); 196 197 if (!allowDelete) { 198 fprintf (stdout, "**** WARNING: not allowed to delete database %s.\n", dbName); 199 return false; 200 } 201 186 202 fprintf(stdout, "*** delete the tables from database %s? ***\n", dbName); 187 203 fprintf(stdout, "*** to delete the tables, answer YES, and give password ***\n"); -
trunk/ippTools/src/pxcam.c
r41213 r42387 174 174 "new", // state 175 175 workdir ? workdir : "NULL", 176 "dirty", // workdir_state176 "dirty", // workdir_state 177 177 label ? label : "NULL", 178 178 data_group ? data_group : "NULL", -
trunk/ippTools/src/pzgetexp.c
r31038 r42387 136 136 psFree(cmdOutput); 137 137 if (!newSummitExps) { 138 // XXX not ne ssicarily an error138 // XXX not necessarily an error? 139 139 psError(PS_ERR_UNKNOWN, true, "no new fileSet/exp IDs"); 140 140 return false; … … 145 145 return true; 146 146 } 147 // If we supply an unknown last_fileset (exposure name) to the summit datastore, 148 // it will return all filesets it knows about. This can cause problems (table overflow) 149 // if this is too large a number. Raise an error and let the user fix the underlying 150 // problem (last exposure not known to the summit datastore) 151 // Do we need to be able to configure this number? 152 if (psArrayLength(newSummitExps) > 10000) { 153 psError(PS_ERR_UNKNOWN, true, "too many new fileSet/exp IDs? unknown exposure? problem with summitExp table?"); 154 return false; 155 } 147 156 148 157 // start a transaction so it's all rows or nothing … … 153 162 } 154 163 155 // increase memory table size limits; deafult is 16MB 156 { 164 // increase memory table size limits; default is 16MB, but our current (2022) config 165 // in /etc/mysql/my.cnf sets to default to 1024M. 166 // This command sets the max_heap_table_size within the transaction, and does not 167 // apparently stick. But this is not really needed, so we are deactivating it. 168 if (0) { 157 169 // 512MB 158 170 char *query = "SET max_heap_table_size = 1024*1024*512";
Note:
See TracChangeset
for help on using the changeset viewer.
