wok-6.x diff cyrus-imapd/stuff/p1.patch @ rev 4365
mirage: fix depends
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Oct 10 23:09:05 2009 +0000 (2009-10-10) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cyrus-imapd/stuff/p1.patch Sat Oct 10 23:09:05 2009 +0000 1.3 @@ -0,0 +1,19 @@ 1.4 +diff -u lib.old/cyrusdb_berkeley.c lib/cyrusdb_berkeley.c 1.5 +--- lib.old/cyrusdb_berkeley.c 2007-04-05 01:23:42.518845824 +0200 1.6 ++++ lib/cyrusdb_berkeley.c 2007-04-05 01:22:20.000000000 +0200 1.7 +@@ -159,7 +159,15 @@ 1.8 + syslog(LOG_WARNING, 1.9 + "DBERROR: invalid berkeley_locks_max value, using internal default"); 1.10 + } else { 1.11 ++#if DB_VERSION_MAJOR >= 4 1.12 ++ r = dbenv->set_lk_max_locks(dbenv, opt); 1.13 ++ if (!r) 1.14 ++ r = dbenv->set_lk_max_lockers(dbenv, opt); 1.15 ++ if (!r) 1.16 ++ r = dbenv->set_lk_max_objects(dbenv, opt); 1.17 ++#else 1.18 + r = dbenv->set_lk_max(dbenv, opt); 1.19 ++#endif 1.20 + if (r) { 1.21 + dbenv->err(dbenv, r, "set_lk_max"); 1.22 + syslog(LOG_ERR, "DBERROR: set_lk_max(): %s", db_strerror(r));