Changeset 2701 for trunk/gsdl
- Timestamp:
- 2001-08-15T12:52:36+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/mgppsearch.cpp
r2699 r2701 79 79 bool mgppsearchclass::search(const queryparamclass &queryparams, 80 80 queryresultsclass &queryresult) { 81 82 char *basepath=""; 81 82 #ifdef __WIN32__ 83 char basepath[]=""; 84 #else 85 char basepath[] = "/"; 86 #endif 87 83 88 char *indexname = (filename_cat(collectdir, getindexsuffix(queryparams))).getcstr(); 84 89 … … 178 183 } 179 184 // clean up 180 //indexData.UnloadData(); - leave it cached for next query181 185 delete indexname; 182 delete basepath;183 186 return true; 184 187 … … 189 192 queryresultsclass &queryresult) { 190 193 191 char *basepath = ""; 194 #ifdef __WIN32__ 195 char basepath[]=""; 196 #else 197 char basepath[] = "/"; 198 #endif 199 192 200 char *indexname = (filename_cat(collectdir, getindexsuffix(queryparams))).getcstr(); 193 201 194 //IndexData indexData;195 202 if (indexData == NULL) { 196 203 indexData = new IndexData(); … … 232 239 } 233 240 // clean up 234 //indexData.UnloadData();235 241 delete indexname; 236 delete basepath;237 242 238 243 return true; … … 253 258 text_t &output) { 254 259 255 char *basepath = ""; 256 char *textname = (filename_cat(collectdir, "index", "text", collection)).getcstr();; 260 #ifdef __WIN32__ 261 char basepath[]=""; 262 #else 263 char basepath[] = "/"; 264 #endif 265 char *textname = (filename_cat(collectdir, "index", "text", collection)).getcstr();; 257 266 258 267 TextData textdata; … … 279 288 //clean up 280 289 textdata.UnloadData (); 281 delete basepath;282 290 delete textname; 283 291
Note:
See TracChangeset
for help on using the changeset viewer.