Show
Ignore:
Timestamp:
13.10.2011 21:45:21 (8 years ago)
Author:
ak19
Message:

Related to bugfix of previous commit: this time, not only is the mgsearch object unloaded, but following the suggestion in the existing comment, the mgppsearch and lucenesearch objects are also unloaded() in the two occasions where mgsearch is.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/colservr/collectset.cpp

    r24757 r24758  
    496496  } 
    497497#endif 
     498#ifdef ENABLE_MGPP 
     499  if (mgppsearch != NULL) { 
     500    mgppsearch->unload_database(); 
     501  } 
     502#endif  
     503#ifdef ENABLE_LUCENE 
     504  if (lucenesearch != NULL) { 
     505    lucenesearch->unload_database(); 
     506  } 
     507#endif 
    498508 
    499509  // now delete the collection server objects 
     
    594604  } 
    595605#endif 
     606#ifdef ENABLE_MGPP 
     607  if (mgppsearch != NULL) { 
     608    mgppsearch->unload_database(); 
     609  } 
     610#endif  
     611#ifdef ENABLE_LUCENE 
     612  if (lucenesearch != NULL) { 
     613    lucenesearch->unload_database(); 
     614  } 
     615#endif  
    596616 
    597617  // now delete the collection server object