|
|
| version 1.23, 2001/10/28 14:47:20 | version 1.27, 2001/10/31 15:00:05 |
|---|---|
| Line 80 DB_Connection::DB_Connection(Pool& apool | Line 80 DB_Connection::DB_Connection(Pool& apool |
| }; | }; |
| u_int32_t flags= | u_int32_t flags= |
| DB_THREAD | parser_multithreaded?DB_THREAD:0 |
| | DB_CREATE | | DB_CREATE |
| | DB_INIT_MPOOL | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_TXN; | | DB_INIT_MPOOL | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_TXN; |
| // trying to open with SOFT RECOVER option set | // prepare dbenv structure |
| memset(&dbenv, 0, sizeof(dbenv)); | memset(&dbenv, 0, sizeof(dbenv)); |
| // error handlers | // error handlers |
| Line 93 DB_Connection::DB_Connection(Pool& apool | Line 93 DB_Connection::DB_Connection(Pool& apool |
| #endif | #endif |
| dbenv.db_errcall=db_errcall; | dbenv.db_errcall=db_errcall; |
| // lockdetector flags | |
| dbenv.lk_detect=DB_LOCK_RANDOM; | |
| // init | // init |
| check("db_appinit", &fdb_home, db_appinit( | check("db_appinit", &fdb_home, db_appinit( |
| db_home_cstr, | db_home_cstr, |
| Line 151 DB_Table_ptr DB_Connection::get_table_pt | Line 154 DB_Table_ptr DB_Connection::get_table_pt |
| DB_Table *result=get_table_from_cache(request_file_name); | DB_Table *result=get_table_from_cache(request_file_name); |
| if(!result) { // no cached table | if(!result) { // no cached table |
| // make global_file_name C-string on global pool | // make global_file_name C-string on global pool |
| const char *request_file_name_cstr=request_file_name.cstr(String::UL_AS_IS); | const char *request_file_name_cstr=request_file_name.cstr(); |
| char *global_file_name_cstr=(char *)malloc(strlen(request_file_name_cstr)+1); | char *global_file_name_cstr=(char *)malloc(strlen(request_file_name_cstr)+1); |
| strcpy(global_file_name_cstr, request_file_name_cstr); | strcpy(global_file_name_cstr, request_file_name_cstr); |
| // make global_file_name string on global pool | // make global_file_name string on global pool |