- Timestamp:
- 2008-05-27T16:09:01+12:00 (16 years ago)
- Location:
- gsdl/trunk/src/colservr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/colservr/Makefile.in
r15684 r15729 32 32 USE_SQLITE = @USE_SQLITE@ 33 33 ifeq ($(USE_SQLITE), 1) 34 SQLITE_DEFINES = -DUSE_SQLITE 34 35 SQLITE_INCLUDES = -I$(PACKAGES_DIR)/sqlite/sqlite3/linux/include 35 36 SQLITE_OBJECTS = sqlitedbclass.o 36 37 SQLITE_SOURCES = sqlitedbclass.cpp 37 38 else 39 SQLITE_DEFINES = 38 40 SQLITE_INCLUDES = 39 41 SQLITE_OBJECTS = … … 47 49 CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ 48 50 CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ 49 DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER 51 DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER $(SQLITE_DEFINES) 50 52 # Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist! 51 53 INCLUDES = @GDBM_INCLUDE@ -I. -I$(GSDL_DIR) -I$(GSDL_DIR)/lib \ -
gsdl/trunk/src/colservr/collectset.cpp
r15682 r15729 42 42 #include <assert.h> 43 43 44 #ifdef USE_SQLITE 45 #include "sqlitedbclass.h" 46 #endif 47 44 48 45 49 collectset::collectset (text_t &gsdlhome) { … … 194 198 // read config file to see if built with mg, mgpp, or lucene 195 199 text_t buildtype = "mg"; // mg is default 200 text_t infodbtype = "gdbm"; // gdbm is default 196 201 197 202 text_tarray cfgline; … … 208 213 if (key == "buildtype") { 209 214 buildtype = cfgline[0]; 210 break; 215 } 216 if (key == "infodbtype") { 217 infodbtype = cfgline[0]; 211 218 } 212 219 } … … 217 224 218 225 collectserver *cserver = new collectserver(); 219 gdbmclass *db_ptr = new gdbmclass(); 226 227 // Create a dbclass of the correct type 228 dbclass *db_ptr = NULL; 229 230 #ifdef USE_SQLITE 231 if (infodbtype == "sqlite") 232 { 233 db_ptr = new sqlitedbclass(); 234 } 235 #endif 236 237 // Use GDBM if the infodb type is empty or not one of the values above 238 if (db_ptr == NULL) 239 { 240 db_ptr = new gdbmclass(); 241 } 220 242 221 243 // add a null filter
Note:
See TracChangeset
for help on using the changeset viewer.