wok-current view cyrus-imapd/stuff/p1.patch @ rev 19454

Up tzdata (2016h)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 21 10:22:15 2016 +0300 (2016-10-21)
parents
children
line source
1 diff -u lib.old/cyrusdb_berkeley.c lib/cyrusdb_berkeley.c
2 --- lib.old/cyrusdb_berkeley.c 2007-04-05 01:23:42.518845824 +0200
3 +++ lib/cyrusdb_berkeley.c 2007-04-05 01:22:20.000000000 +0200
4 @@ -159,7 +159,15 @@
5 syslog(LOG_WARNING,
6 "DBERROR: invalid berkeley_locks_max value, using internal default");
7 } else {
8 +#if DB_VERSION_MAJOR >= 4
9 + r = dbenv->set_lk_max_locks(dbenv, opt);
10 + if (!r)
11 + r = dbenv->set_lk_max_lockers(dbenv, opt);
12 + if (!r)
13 + r = dbenv->set_lk_max_objects(dbenv, opt);
14 +#else
15 r = dbenv->set_lk_max(dbenv, opt);
16 +#endif
17 if (r) {
18 dbenv->err(dbenv, r, "set_lk_max");
19 syslog(LOG_ERR, "DBERROR: set_lk_max(): %s", db_strerror(r));