IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18721


Ignore:
Timestamp:
Jul 24, 2008, 3:56:16 PM (18 years ago)
Author:
eugene
Message:

avoid update mode unless mode is SPLIT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/addstar.c

    r17119 r18721  
    9393    catalog.catflags  = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
    9494    catalog.Nsecfilt  = GetPhotcodeNsecfilt ();
     95
     96    // XXX need to do something to enforce consistency.  we can change options.update
     97    // based on the value of catmode as below.  however, this seems to be a problem if
     98    // there is an inconsistency between the config values and the existing db.  not so
     99    // bad if the existing db is SPLIT, but a problem if we request SPLIT and the existing
     100    // db is MEF.
     101    if (catalog.catmode != DVO_MODE_SPLIT) options.update = FALSE;
     102
    95103    if (options.update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF;
    96104
Note: See TracChangeset for help on using the changeset viewer.