Changeset 15680 for gsdl/trunk/src/colservr
- Timestamp:
- 2008-05-23T14:40:43+12:00 (16 years ago)
- Location:
- gsdl/trunk/src/colservr
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/colservr/browsefilter.cpp
r15587 r15680 26 26 #include "browsefilter.h" 27 27 #include "fileutil.h" 28 #include "gsdltools.h"29 28 30 29 … … 76 75 if (!filterclass::init(logout)) return false; 77 76 77 if (db_ptr == NULL) { 78 // most likely a configuration problem 79 logout << text_t2ascii 80 << "configuration error: browsefilter contains a null dbclass\n\n"; 81 return false; 82 } 83 78 84 if (indexstem.empty()) { 79 85 indexstem = collection; … … 81 87 // get the filename for the database and make sure it exists 82 88 db_filename = filename_cat(dbhome, "collect", collection, "index", "text", indexstem); 83 84 if (littleEndian()) db_filename += ".ldb"; 85 else db_filename += ".bdb"; 86 89 db_filename += db_ptr->getfileextension(); 87 90 if (!file_exists(db_filename)) { 88 91 logout << text_t2ascii -
gsdl/trunk/src/colservr/queryfilter.cpp
r15595 r15680 26 26 #include "queryfilter.h" 27 27 #include "fileutil.h" 28 #include "gsdltools.h"29 #include <assert.h>30 28 31 29 … … 404 402 } 405 403 404 if (db_ptr == NULL) { 405 // most likely a configuration problem 406 logout << text_t2ascii 407 << "configuration error: queryfilter contains a null dbclass\n\n"; 408 return false; 409 } 410 406 411 // get the filename for the database and make sure it exists 407 412 if (indexstem.empty()) { … … 409 414 } 410 415 db_filename = filename_cat(dbhome, "collect", collection, "index", "text", indexstem); 411 412 if (littleEndian()) db_filename += ".ldb"; 413 else db_filename += ".bdb"; 414 416 db_filename += db_ptr->getfileextension(); 415 417 if (!file_exists(db_filename)) { 416 418 logout << text_t2ascii -
gsdl/trunk/src/colservr/source.cpp
r15617 r15680 27 27 #include "fileutil.h" 28 28 #include "OIDtools.h" 29 #include "gsdltools.h"30 29 #include <assert.h> 31 30 … … 117 116 collectdir = filename_cat (gsdlhome, "collect", collection); 118 117 } 119 118 119 if (db_ptr == NULL) { 120 // most likely a configuration problem 121 logout << text_t2ascii 122 << "configuration error: queryfilter contains a null dbclass\n\n"; 123 return false; 124 } 125 120 126 // get the filename for the database and make sure it exists 121 127 if (indexstem.empty()) { … … 123 129 } 124 130 db_filename = filename_cat(dbhome, "collect", collection, "index", "text", indexstem); 125 if (littleEndian()) db_filename += ".ldb"; 126 else db_filename += ".bdb"; 127 131 db_filename += db_ptr->getfileextension(); 128 132 if (!file_exists(db_filename)) { 129 133 logout << text_t2ascii
Note:
See TracChangeset
for help on using the changeset viewer.