wok annotate cyrus-imapd/stuff/p1.patch @ rev 12282
qtwitter: try a fix
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 15 15:07:41 2012 +0200 (2012-04-15) |
parents | |
children |
rev | line source |
---|---|
pascal@1210 | 1 diff -u lib.old/cyrusdb_berkeley.c lib/cyrusdb_berkeley.c |
pascal@1210 | 2 --- lib.old/cyrusdb_berkeley.c 2007-04-05 01:23:42.518845824 +0200 |
pascal@1210 | 3 +++ lib/cyrusdb_berkeley.c 2007-04-05 01:22:20.000000000 +0200 |
pascal@1210 | 4 @@ -159,7 +159,15 @@ |
pascal@1210 | 5 syslog(LOG_WARNING, |
pascal@1210 | 6 "DBERROR: invalid berkeley_locks_max value, using internal default"); |
pascal@1210 | 7 } else { |
pascal@1210 | 8 +#if DB_VERSION_MAJOR >= 4 |
pascal@1210 | 9 + r = dbenv->set_lk_max_locks(dbenv, opt); |
pascal@1210 | 10 + if (!r) |
pascal@1210 | 11 + r = dbenv->set_lk_max_lockers(dbenv, opt); |
pascal@1210 | 12 + if (!r) |
pascal@1210 | 13 + r = dbenv->set_lk_max_objects(dbenv, opt); |
pascal@1210 | 14 +#else |
pascal@1210 | 15 r = dbenv->set_lk_max(dbenv, opt); |
pascal@1210 | 16 +#endif |
pascal@1210 | 17 if (r) { |
pascal@1210 | 18 dbenv->err(dbenv, r, "set_lk_max"); |
pascal@1210 | 19 syslog(LOG_ERR, "DBERROR: set_lk_max(): %s", db_strerror(r)); |