Ignore:
Timestamp:
2007-01-24T16:48:54+13:00 (17 years ago)
Author:
mdewsnip
Message:

GLI/LOCAL LIBRARY: To prevent the problems with the GLI being unable to install newly built collections because the local library is holding files open, much more care needs to be taken to close files (typically the GDBM database and the MG/MGPP index files) after use. Fixed a lot of places where files were being left open.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/gdbmsource.cpp

    r10414 r13780  
    159159  infodbclass info;
    160160  OIDout = gdbmptr->translate_OID (OIDin, info);
     161  gdbmptr->closedatabase();  // Important that local library doesn't leave any files open
    161162  return true;
    162163}
     
    314315    ++fields_here;
    315316  }
     317
     318  gdbmptr->closedatabase();  // Important that local library doesn't leave any files open
    316319  return true;
    317320}
     
    348351    translate_OID (OID, tOID, err, logout);
    349352  infodbclass info;
    350   if (!gdbmptr->getinfo(tOID, info)) return false;
     353  if (!gdbmptr->getinfo(tOID, info)) {
     354    gdbmptr->closedatabase();  // Important that local library doesn't leave any files open
     355    return false;
     356  }
    351357 
    352358  if (info["hastxt"].getint() == 1) {
     
    360366                   defaultlanguage, collection, docnum, doc);
    361367  }
     368
     369  gdbmptr->closedatabase();  // Important that local library doesn't leave any files open
    362370  return true;
    363371}
Note: See TracChangeset for help on using the changeset viewer.