- Timestamp:
- 2009-04-20T10:11:35+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/common-src/src/lib/gdbmclass.cpp
r18880 r19061 72 72 if (gdbm_mode == GDBM_READER) 73 73 { 74 // make sure we have the right file extension. Should be db (for systems dbs, and gdb for collection dbs. But need to handle old style ldb/bdb 74 // make sure we have the right file extension. Should be all gdb now. 75 // But need to handle old style ldb/bdb collection dbs 75 76 76 77 // If the specified GDBM file doesn't exist, (should be gdb) try the other extensions (we can now read both) 77 78 if (!file_exists(gdbm_filename)) 78 79 { 80 // should be all gdb now 79 81 if (ends_with(gdbm_filename, ".gdb")) { 80 // only try ldb and bdb for collection dbs, not system dbs which are .db81 82 gdbm_filename = substr(gdbm_filename.begin(), gdbm_filename.end() - ((text_t) ".gdb").size()) + ".ldb"; 82 83 83 84 if (!file_exists(gdbm_filename)) { 84 85 // try bdb as well … … 298 299 text_t::const_iterator begin = filename.begin(); 299 300 text_t::const_iterator end= filename.end(); 300 301 if (begin != end) 302 { 303 end = end - 1; 304 } 301 302 if (begin != end) { 303 end = end - 1; 304 } 305 305 306 306 text_t::const_iterator here = end;
Note:
See TracChangeset
for help on using the changeset viewer.