Changeset 9828


Ignore:
Timestamp:
2005-05-06T09:43:23+12:00 (19 years ago)
Author:
kjdon
Message:

deactivate a collection (GS3, tomcat) before deleting the index directory, otherwise windows holds a lock on the gdbm database

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

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

    r8236 r9828  
    5757   
    5858    static public String ADD_COMMAND = "?a=s&sa=a&st=collection&sn=";
    59 
     59    static public String DEACTIVATE_COMMAND = "?a=s&sa=d&st=collection&sn=";
    6060    private String gsdl3_path = "";
    6161    private ArrayList sites = null;
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r9755 r9828  
    11751175        LocalLibraryServer.releaseCollection(collection.getName());
    11761176        }
    1177 
     1177        // deactivate it in tomcat so that windows will release the index files
     1178        if (Gatherer.GS3) {
     1179        Gatherer.configGS3Server(Configuration.site_name, ServletConfiguration.DEACTIVATE_COMMAND + collection.getName());
     1180        }
    11781181        File index_dir = new File(getCollectionIndexDirectoryPath());
    11791182        DebugStream.println("Index = " + index_dir.getAbsolutePath());
Note: See TracChangeset for help on using the changeset viewer.