IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27353


Ignore:
Timestamp:
Mar 19, 2010, 8:23:58 AM (16 years ago)
Author:
eugene
Message:

skip empty catalogs for resort

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/largefiles.20100314/Ohana/src/addstar/src/addstar.c

    r27296 r27353  
    149149      case M_RESORT:
    150150        if (options.nosort == 3) catalog.sorted = FALSE;
     151
     152        // no need to resort empty catalogs
     153        if (catalog.Naves_disk == 0) {
     154          dvo_catalog_unlock (&catalog);
     155          dvo_catalog_free (&catalog);
     156          continue;
     157        }
     158
    151159        resort_catalog (&catalog);
    152160        Nsubset = 1;
Note: See TracChangeset for help on using the changeset viewer.