Changeset 33520
- Timestamp:
- Mar 14, 2012, 6:53:52 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20111122/Ohana/src
- Files:
-
- 14 edited
-
libdvo/include/dvo.h (modified) (1 diff)
-
libdvo/src/HostTable.c (modified) (1 diff)
-
opihi/dvo/avextract.c (modified) (1 diff)
-
opihi/dvo/mextract.c (modified) (1 diff)
-
photdbc/src/CopyBackupToHost.c (modified) (1 diff)
-
photdbc/src/initialize_dvodist.c (modified) (1 diff)
-
relastro/src/UpdateObjectOffsets.c (modified) (1 diff)
-
relastro/src/high_speed_catalogs.c (modified) (1 diff)
-
relastro/src/load_catalogs.c (modified) (1 diff)
-
relastro/src/relastro_objects.c (modified) (1 diff)
-
relphot/src/load_catalogs.c (modified) (1 diff)
-
relphot/src/reload_catalogs.c (modified) (1 diff)
-
relphot/src/relphot_objects.c (modified) (1 diff)
-
uniphot/src/update_dvo_setphot.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/libdvo/include/dvo.h
r33519 r33520 626 626 int HostTableWaitJobs (HostTable *table, char *file, int lineno); 627 627 int HostTableWaitJobsGetIO (HostTable *table, char *file, int lineno); 628 int HostTableTestHost (SkyRegion *region, int hostID); 628 629 629 630 // functions to support tiny versions of Average and Measure -
branches/eam_branches/ipp-20111122/Ohana/src/libdvo/src/HostTable.c
r33519 r33520 342 342 return globalStatus; 343 343 } 344 345 int HostTableTestHost (SkyRegion *region, int hostID) { 346 347 if (!hostID) return FALSE; 348 349 if (region->hostFlags & DATA_USE_BCK) { 350 if (region->backupID == hostID) return TRUE; 351 } else { 352 if (region->hostID == hostID) return TRUE; 353 } 354 return FALSE; 355 } -
branches/eam_branches/ipp-20111122/Ohana/src/opihi/dvo/avextract.c
r33314 r33520 143 143 interrupt = FALSE; 144 144 for (i = 0; (i < skylist[0].Nregions) && !interrupt; i++) { 145 // parallel case, wrong client 146 if (HOST_ID && (HOST_ID != skylist[0].regions[i]->hostID)) continue; 145 146 // does this host ID match the desired location for the table? 147 if (!HostTableTestHost(skylist[0].regions[i], HOST_ID)) continue; 147 148 148 149 /* lock, load, unlock catalog */ -
branches/eam_branches/ipp-20111122/Ohana/src/opihi/dvo/mextract.c
r33480 r33520 159 159 160 160 for (i = 0; (i < skylist[0].Nregions) && !interrupt; i++) { 161 // parallel case, wrong client 162 if (HOST_ID && (HOST_ID != skylist[0].regions[i]->hostID)) continue; 161 162 // does this host ID match the desired location for the table? 163 if (!HostTableTestHost(skylist[0].regions[i], HOST_ID)) continue; 163 164 164 165 /* lock, load, unlock catalog */ -
branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/CopyBackupToHost.c
r33518 r33520 106 106 107 107 valid: 108 if (j == 0) { 109 fprintf (stderr, "copying %s to %s\n", skylist->regions[i]->name, dstHost->pathname); 110 } 111 108 112 // read srcname, write to tgtname, get MD5 sum for srcname as we go: 109 113 // XXX files that fail here should be skipped (but don't give up) -
branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/initialize_dvodist.c
r33518 r33520 104 104 } 105 105 // usage dvodist -out-backup (srcHost) to (dstHost) 106 MODE = MODE_ OUT_BACKUP;106 MODE = MODE_USE_BACKUP; 107 107 remove_argument (N, &argc, argv); 108 108 srcHostname = strcreate (argv[N]); -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/UpdateObjectOffsets.c
r33480 r33520 23 23 for (i = 0; i < skylist[0].Nregions; i++) { 24 24 25 if (hostID && (skylist[0].regions[i]->hostID != hostID)) continue; 25 // does this host ID match the desired location for the table? 26 if (!HostTableTestHost(skylist[0].regions[i], hostID)) continue; 26 27 27 28 // define the catalog file name -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/high_speed_catalogs.c
r33475 r33520 22 22 for (i = 0; i < skylist[0].Nregions; i++) { 23 23 24 if (hostID && (skylist[0].regions[i]->hostID != hostID)) continue; 24 // does this host ID match the desired location for the table? 25 if (!HostTableTestHost(skylist[0].regions[i], hostID)) continue; 25 26 26 27 // set up the basic catalog info -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/load_catalogs.c
r33515 r33520 22 22 for (i = 0; i < skylist[0].Nregions; i++) { 23 23 24 if (hostID && (skylist[0].regions[i]->hostID != hostID)) continue; 24 // does this host ID match the desired location for the table? 25 if (!HostTableTestHost(skylist[0].regions[i], hostID)) continue; 25 26 26 27 // we only allow output if we do not use a subset. in this case, -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/relastro_objects.c
r33480 r33520 34 34 for (i = 0; i < skylist[0].Nregions; i++) { 35 35 36 if (hostID && (skylist[0].regions[i]->hostID != hostID)) continue; 36 // does this host ID match the desired location for the table? 37 if (!HostTableTestHost(skylist[0].regions[i], hostID)) continue; 37 38 38 39 // set up the basic catalog info -
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/load_catalogs.c
r33510 r33520 35 35 dvo_catalog_init (&catalog[i], TRUE); 36 36 37 if (hostID && (skylist[0].regions[i]->hostID != hostID)) continue; 37 // does this host ID match the desired location for the table? 38 if (!HostTableTestHost(skylist[0].regions[i], hostID)) continue; 38 39 39 40 // set up the basic catalog info -
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/reload_catalogs.c
r33503 r33520 37 37 /* load data from each region file */ 38 38 for (i = 0; i < skylist[0].Nregions; i++) { 39 if (hostID && (skylist[0].regions[i]->hostID != hostID)) continue; 39 40 // does this host ID match the desired location for the table? 41 if (!HostTableTestHost(skylist[0].regions[i], hostID)) continue; 40 42 41 43 gettimeofday (&start, (void *) NULL); -
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/relphot_objects.c
r33503 r33520 33 33 for (i = 0; i < skylist[0].Nregions; i++) { 34 34 35 if (hostID && (skylist[0].regions[i]->hostID != hostID)) continue; 35 // does this host ID match the desired location for the table? 36 if (!HostTableTestHost(skylist[0].regions[i], hostID)) continue; 36 37 37 38 // set up the basic catalog info -
branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/update_dvo_setphot.c
r33483 r33520 43 43 for (i = 0; i < skylist[0].Nregions; i++) { 44 44 45 if (HOST_ID && (HOST_ID != skylist->regions[i]->hostID)) continue;46 if ( HOST_ID && !(skylist->regions[i]->hostFlags & DATA_ON_TGT)) continue;45 // does this host ID match the desired location for the table? 46 if (!HostTableTestHost(skylist[0].regions[i], HOST_ID)) continue; 47 47 48 48 char localFilename[1024];
Note:
See TracChangeset
for help on using the changeset viewer.
