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

updated cellwriter (1.3.5 -> 1.3.6)
author Hans-G?nter Theisgen
date Thu Feb 14 13:52:33 2019 +0100 (2019-02-14)
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));