IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28892


Ignore:
Timestamp:
Aug 10, 2010, 4:34:43 PM (16 years ago)
Author:
eugene
Message:

protect catalog files against inconsistent changes when program is killed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100621/Ohana/src/dvomerge/src/dvomergeUpdate.c

    r28865 r28892  
    9292
    9393      outcatalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
     94
     95      // if we receive a signal which would cause us to exit, wait until the full catalog is written
     96      SetProtect (TRUE);
    9497      dvo_catalog_save (&outcatalog, VERBOSE);
     98      SetProtect (FALSE);
     99
    95100      dvo_catalog_unlock (&outcatalog);
    96101      dvo_catalog_free (&outcatalog);
Note: See TracChangeset for help on using the changeset viewer.