mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
postfix: Added experimental support for Berkeley DB (btree files).
Note that hash files are currently not supported by OpenWRT package of Berkeley DB. CDB is still default. Signed-off-by: Denis Shulyaka <Shulyaka@gmail.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
diff -Naur postfix-2.11.3/src/util/dict_db.c postfix-2.11.3_patched/src/util/dict_db.c
|
||||
--- postfix-2.11.3/src/util/dict_db.c 2012-01-25 04:41:08.000000000 +0400
|
||||
+++ postfix-2.11.3_patched/src/util/dict_db.c 2014-11-01 12:36:44.287641712 +0300
|
||||
@@ -691,8 +691,8 @@
|
||||
msg_panic("db_create null result");
|
||||
if ((errno = db->set_cachesize(db, 0, dict_db_cache_size, 0)) != 0)
|
||||
msg_fatal("set DB cache size %d: %m", dict_db_cache_size);
|
||||
- if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
|
||||
- msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
|
||||
+// if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
|
||||
+// msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
|
||||
#if DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
|
||||
if ((errno = db->open(db, 0, db_path, 0, type, db_flags, 0644)) != 0)
|
||||
FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags,
|
||||
Reference in New Issue
Block a user