Changeset 15558 for gsdl/trunk/src/colservr/mgqueryfilter.cpp
- Timestamp:
- 2008-05-17T16:00:00+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/colservr/mgqueryfilter.cpp
r13780 r15558 170 170 docresultmap::iterator docs_end = queryresults.docs.docset.end(); 171 171 while (docs_here != docs_end) { 172 if (OID_phrase_search (*((mgsearchclass*)textsearchptr), * gdbmptr, queryparams.index,172 if (OID_phrase_search (*((mgsearchclass*)textsearchptr), *db_ptr, queryparams.index, 173 173 queryparams.subcollection, queryparams.language, 174 174 longindex, queryparams.collection, *this_phrase, … … 187 187 188 188 // do query that might involve multiple sub queries 189 // mgsearchptr and gdbmptr are assumed to be valid189 // mgsearchptr and db_ptr are assumed to be valid 190 190 void mgqueryfilterclass::do_multi_query (const FilterRequest_t &request, 191 191 const vector<queryparamclass> &query_params, … … 297 297 response.clear (); 298 298 err = noError; 299 if ( gdbmptr == NULL) {299 if (db_ptr == NULL) { 300 300 // most likely a configuration problem 301 301 logout << text_t2ascii 302 << "configuration error: mgqueryfilter contains a null gdbmclass\n\n";302 << "configuration error: mgqueryfilter contains a null dbclass\n\n"; 303 303 err = configurationError; 304 304 return; … … 313 313 314 314 // open the database 315 gdbmptr->setlogout(&logout); 316 if (!gdbmptr->opendatabase (gdbm_filename, GDBM_READER, 100, false)) { 317 // most likely a system problem (we have already checked that the 318 // gdbm database exists) 315 db_ptr->setlogout(&logout); 316 if (!db_ptr->opendatabase (db_filename, DB_READER, 100, false)) { 317 // most likely a system problem (we have already checked that the database exists) 319 318 logout << text_t2ascii 320 << "system problem: open on gdbm database \"" 321 << gdbm_filename << "\" failed\n\n"; 319 << "system problem: open on database \"" << db_filename << "\" failed\n\n"; 322 320 err = systemProblem; 323 321 return; … … 383 381 384 382 // translate the document number 385 if (!translate( gdbmptr, *docorder_here, trans_OID)) {383 if (!translate(db_ptr, *docorder_here, trans_OID)) { 386 384 logout << text_t2ascii 387 385 << "warning: could not translate mg document number \"" … … 445 443 } 446 444 447 gdbmptr->closedatabase(); // Important that local library doesn't leave any files open445 db_ptr->closedatabase(); // Important that local library doesn't leave any files open 448 446 response.numDocs = queryresults.docs_matched; 449 447 response.isApprox = queryresults.is_approx;
Note:
See TracChangeset
for help on using the changeset viewer.