Changeset 25067

Show
Ignore:
Timestamp:
09.02.2012 16:22:02 (8 years ago)
Author:
sjm84
Message:

Moved the collection unload call so that it is done after a the status check

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GS2Construct.java

    r24993 r25067  
    174174        String lang = request.getAttribute(GSXML.LANG_ATT); 
    175175 
    176         UserContext userContext = new UserContext(request); 
    177          
    178         systemRequest("delete", coll_name, null, userContext); 
    179  
    180176        Element response = runCommand(request, GS2PerlConstructor.ACTIVATE); 
    181177        Element status = (Element) GSXML.getChildByTagName(response, GSXML.STATUS_ELEM); 
     
    186182            return response; 
    187183        } 
     184         
     185        UserContext userContext = new UserContext(request); 
     186        systemRequest("delete", coll_name, null, userContext); 
    188187 
    189188        // check for finished 
     
    202201            return response; 
    203202        } 
     203 
    204204        while (!GSStatus.isCompleted(status_code)) 
    205205        { 
     
    284284            return response; 
    285285        } 
    286          
     286 
    287287        UserContext userContext = new UserContext(request); 
    288288 
     
    324324 
    325325        String coll_name = (String) params.get(COL_PARAM); 
    326          
     326 
    327327        UserContext userContext = new UserContext(request); 
    328328