Changeset 13780 for trunk/gsdl/src/colservr/lucenegdbmsource.cpp
- Timestamp:
- 2007-01-24T16:48:54+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.