Lines 693-699
Link Here
|
693 |
msg_fatal("set DB cache size %d: %m", dict_db_cache_size); |
693 |
msg_fatal("set DB cache size %d: %m", dict_db_cache_size); |
694 |
if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0) |
694 |
if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0) |
695 |
msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM); |
695 |
msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM); |
696 |
#if DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) |
696 |
#if DB_VERSION_MAJOR == 6 || DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) |
697 |
if ((errno = db->open(db, 0, db_path, 0, type, db_flags, 0644)) != 0) |
697 |
if ((errno = db->open(db, 0, db_path, 0, type, db_flags, 0644)) != 0) |
698 |
FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags, |
698 |
FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags, |
699 |
"open database %s: %m", db_path)); |
699 |
"open database %s: %m", db_path)); |