IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 23, 2012, 9:10:42 AM (14 years ago)
Author:
eugene
Message:

going back on forth on the locking issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120405/Ohana/src/dvomerge/src/dvomergeImageIDs.c

    r33834 r33905  
    1212  inDB.mode   = dvo_catalog_catmode (CATMODE);
    1313  inDB.format = dvo_catalog_catformat (CATFORMAT);
    14   status       = dvo_image_lock (&inDB, ImageCat, 3600.0, LCK_XCLD);  // shorter timeout?
     14  status       = dvo_image_lock (&inDB, ImageCat, 3600.0, LCK_SOFT);  // shorter timeout?
    1515  if (!status) Shutdown ("ERROR: failure to lock image catalog %s", inDB.filename);
    1616
     
    6464  inDB.mode   = dvo_catalog_catmode (CATMODE);
    6565  inDB.format = dvo_catalog_catformat (CATFORMAT);
    66   status       = dvo_image_lock (&inDB, ImageCat, 3600.0, LCK_XCLD);  // shorter timeout?
     66  status       = dvo_image_lock (&inDB, ImageCat, 5400.0, LCK_XCLD);  // shorter timeout?
    6767  if (!status) Shutdown ("ERROR: failure to lock image catalog %s", inDB.filename);
    6868
     
    7878    Shutdown ("can't read input image catalog %s", inDB.filename);
    7979  }
     80  dvo_image_unlock (&inDB); // unlock input
    8081
    8182  /*** load output/Images.dat ***/
     
    8384  outDB.mode   = dvo_catalog_catmode (CATMODE);
    8485  outDB.format = dvo_catalog_catformat (CATFORMAT);
    85   status       = dvo_image_lock (&outDB, ImageCat, 3600.0, LCK_XCLD);  // shorter timeout?
     86  status       = dvo_image_lock (&outDB, ImageCat, 5400.0, LCK_XCLD);  // shorter timeout?
    8687  if (!status) Shutdown ("ERROR: failure to lock image catalog %s", outDB.filename);
    8788
     
    9394    Shutdown ("can't read output image catalog %s", outDB.filename);
    9495  }
     96  dvo_image_unlock (&outDB); // unlock output
    9597
    9698  // convert database table to internal structure & add to output image db
    9799  dvo_image_match_dbs(IDmap, &outDB, &inDB);
    98   dvo_image_unlock (&inDB); // unlock input
    99   dvo_image_unlock (&outDB); // unlock output
    100100
    101101  return TRUE;
Note: See TracChangeset for help on using the changeset viewer.