Ignore:
Timestamp:
2004-06-17T11:08:27+12:00 (20 years ago)
Author:
mdewsnip
Message:

Have hopefully (and finally!) fixed the nasty race conditions with the local library server (causing, for example, the "could not remove index directory" problems). The Gatherer.configServer function performs an HTTP request, but returns before the local library processing is actually complete.

This can be solved by calling the configServer function again, with an empty string argument -- this extra request will not return until the first (real) request is processed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/CollectionDesignManager.java

    r7600 r7601  
    214214      // Release the collection
    215215      Gatherer.self.configServer(GSDLSiteConfig.RELEASE_COMMAND + Gatherer.c_man.getCollection().getName());
    216      collection_released = true;
     216      // This is very important -- it ensures that the above command has finished
     217      Gatherer.self.configServer("");
     218      collection_released = true;
    217219      }
    218220
     
    225227      // Then re-add it to force format commands to be processed
    226228      Gatherer.self.configServer(GSDLSiteConfig.ADD_COMMAND + Gatherer.c_man.getCollection().getName());
     229      // This is very important -- it ensures that the above command has finished
     230      Gatherer.self.configServer("");
    227231     // Unset formats changed
    228232     format_manager.setFormatsChanged(false);
Note: See TracChangeset for help on using the changeset viewer.