Changeset 15558 for gsdl/trunk/src/colservr/queryfilter.cpp
- Timestamp:
- 2008-05-17T16:00:00+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/colservr/queryfilter.cpp
r12871 r15558 31 31 32 32 // translate will return true if successful 33 bool queryfilterclass::translate ( gdbmclass *gdbmptr, int docnum, text_t &trans_OID) {33 bool queryfilterclass::translate (dbclass *db_ptr, int docnum, text_t &trans_OID) { 34 34 infodbclass info; 35 35 … … 37 37 38 38 // get the info 39 if ( gdbmptr == NULL) return false;40 if (! gdbmptr->getinfo(docnum, info)) return false;39 if (db_ptr == NULL) return false; 40 if (!db_ptr->getinfo(docnum, info)) return false; 41 41 42 42 // translate … … 187 187 188 188 queryfilterclass::queryfilterclass () { 189 gdbmptr = NULL;189 db_ptr = NULL; 190 190 textsearchptr = NULL; 191 191 maxnumeric = 4; … … 326 326 327 327 queryfilterclass::~queryfilterclass () { 328 // don't delete gdbmptr or mgsearchptr here, they'll328 // don't delete db_ptr or mgsearchptr here, they'll 329 329 // be cleaned up by mggdbmsource 330 330 } … … 409 409 indexstem = collection; 410 410 } 411 gdbm_filename = filename_cat(gdbmhome, "collect", collection, "index", "text", indexstem);412 413 if (littleEndian()) gdbm_filename += ".ldb";414 else gdbm_filename += ".bdb";415 416 if (!file_exists( gdbm_filename)) {411 db_filename = filename_cat(gdbmhome, "collect", collection, "index", "text", indexstem); 412 413 if (littleEndian()) db_filename += ".ldb"; 414 else db_filename += ".bdb"; 415 416 if (!file_exists(db_filename)) { 417 417 logout << text_t2ascii 418 << "warning: gdbm database \"" //**** 419 << gdbm_filename << "\" does not exist\n\n"; 420 //return false; //**** 418 << "warning: database \"" << db_filename << "\" does not exist\n\n"; 419 //return false; 421 420 } 422 421
Note:
See TracChangeset
for help on using the changeset viewer.