Changeset 13780
- Timestamp:
- 2007-01-24T16:48:54+13:00 (17 years ago)
- Location:
- trunk/gsdl/src/colservr
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/browsefilter.cpp
r11259 r13780 304 304 } 305 305 306 gdbmptr->closedatabase(); // Important that local library doesn't leave any files open 306 307 response.numDocs = numDocs; 307 308 response.isApprox = Exact; -
trunk/gsdl/src/colservr/gdbmsource.cpp
r10414 r13780 159 159 infodbclass info; 160 160 OIDout = gdbmptr->translate_OID (OIDin, info); 161 gdbmptr->closedatabase(); // Important that local library doesn't leave any files open 161 162 return true; 162 163 } … … 314 315 ++fields_here; 315 316 } 317 318 gdbmptr->closedatabase(); // Important that local library doesn't leave any files open 316 319 return true; 317 320 } … … 348 351 translate_OID (OID, tOID, err, logout); 349 352 infodbclass info; 350 if (!gdbmptr->getinfo(tOID, info)) return false; 353 if (!gdbmptr->getinfo(tOID, info)) { 354 gdbmptr->closedatabase(); // Important that local library doesn't leave any files open 355 return false; 356 } 351 357 352 358 if (info["hastxt"].getint() == 1) { … … 360 366 defaultlanguage, collection, docnum, doc); 361 367 } 368 369 gdbmptr->closedatabase(); // Important that local library doesn't leave any files open 362 370 return true; 363 371 } -
trunk/gsdl/src/colservr/lucenegdbmsource.cpp
r9916 r13780 68 68 translate_OID (OID, tOID, err, logout); 69 69 infodbclass info; 70 if (!gdbmptr->getinfo(tOID, info)) return false; 71 70 if (!gdbmptr->getinfo(tOID, info)) { 71 gdbmptr->closedatabase(); // Important that local library doesn't leave any files open 72 return false; 73 } 74 72 75 if (info["hastxt"].getint() == 0) { // there is no text for this section 73 76 return false; // true?? … … 80 83 81 84 // locate the parent info ingdbm db 82 if (!gdbmptr->getinfo(parent_OID, info)) return false; 83 85 if (!gdbmptr->getinfo(parent_OID, info)) { 86 gdbmptr->closedatabase(); // Important that local library doesn't leave any files open 87 return false; 88 } 89 84 90 text_t archive_dir = info["assocfilepath"]; 85 91 text_t full_path_to_doc = filename_cat(collectdir, "index", "text", archive_dir, "doc.xml"); 86 92 87 93 doc.clear(); 94 gdbmptr->closedatabase(); // Important that local library doesn't leave any files open 88 95 expat_document(full_path_to_doc, ((lucenesearchclass*)textsearchptr)->gdbm_level, text_t(docnum), doc); 89 96 return true; -
trunk/gsdl/src/colservr/lucenequeryfilter.cpp
r13063 r13780 261 261 } 262 262 263 gdbmptr->closedatabase(); // Important that local library doesn't leave any files open 263 264 response.numDocs = queryresults.docs_matched; 264 265 response.isApprox = queryresults.is_approx; -
trunk/gsdl/src/colservr/mgppqueryfilter.cpp
r10954 r13780 250 250 } 251 251 252 gdbmptr->closedatabase(); // Important that local library doesn't leave any files open 252 253 response.numDocs = queryresults.docs_matched; 253 254 response.isApprox = queryresults.is_approx; -
trunk/gsdl/src/colservr/mgppsearch.cpp
r12869 r13780 212 212 } 213 213 // clean up 214 unload_database(); // Important that local library doesn't leave any files open 214 215 delete []indexname; 215 216 return true; … … 270 271 queryresult.terms.push_back(term); 271 272 queryresult.orgterms.push_back(term); 272 273 } 273 } 274 274 275 // clean up 276 unload_database(); // Important that local library doesn't leave any files open 275 277 delete []indexname; 276 278 -
trunk/gsdl/src/colservr/mgqueryfilter.cpp
r12314 r13780 445 445 } 446 446 447 gdbmptr->closedatabase(); // Important that local library doesn't leave any files open 447 448 response.numDocs = queryresults.docs_matched; 448 449 response.isApprox = queryresults.is_approx; -
trunk/gsdl/src/colservr/mgsearch.cpp
r9937 r13780 336 336 // retrieve the results 337 337 getresults (queryparams, queryresults); 338 unload_database(); // Important that local library doesn't leave any files open 338 339 return true; 339 340 } … … 561 562 } 562 563 564 unload_database(); // Important that local library doesn't leave any files open 563 565 return (bool)databaseloaded; 564 566 }
Note:
See TracChangeset
for help on using the changeset viewer.