Changeset 35804
- Timestamp:
- Jul 12, 2013, 1:16:28 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvopsps/src/insert_detections_dvopsps.c
r35777 r35804 182 182 if (!PARALLEL_MANUAL && !PARALLEL_SERIAL) { 183 183 int status = HostTableWaitJobsGetIO (table, __FILE__, __LINE__, VERBOSE); 184 if (VERBOSE) fprintf (stderr, "done reading remote tables, status: %d\n", status); 184 185 if (!status) return FALSE; 185 186 } … … 198 199 } 199 200 201 // explicitly delete all entries 202 char query[256]; 203 sprintf (query, "delete from dvoDetectionFull"); 204 if (mysql_query (mysql, query)) { 205 fprintf (stderr, "failed to delete existing entries\n"); 206 fprintf (stderr, "%s\n", mysql_error (mysql)); 207 return FALSE; 208 } 209 if (VERBOSE) fprintf (stderr, "deleted existing entries\n"); 210 200 211 for (i = 0; i < table->Nhosts; i++) { 201 212 if ((detections = DetectionsLoad (table->hosts[i].results, &Ndetections)) == NULL) { … … 205 216 return FALSE; 206 217 } 218 if (VERBOSE) fprintf (stderr, "read %d detections from %s\n", Ndetections, table->hosts[i].hostname); 207 219 free (table->hosts[i].results); 208 220 table->hosts[i].results = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
