[prev in list] [next in list] [prev in thread] [next in thread] 

List:       inn-workers
Subject:    Re: support for libdb 4.6
From:       md () Linux ! IT (Marco d'Itri)
Date:       2008-04-12 8:37:45
Message-ID: 20080412083744.GA17596 () bongo ! bofh ! it
[Download RAW message or body]

On Apr 12, Julien ÉLIE <julien@trigofacile.com> wrote:

> Was there a patch along with your mail?  We received a blank message
> in inn-workers.
Yes...

--- a/storage/ovdb/ovdb.c
+++ b/storage/ovdb/ovdb.c
@@ -1526,7 +1526,13 @@ int ovdb_open_berkeleydb(int mode, int f
 
     OVDBenv->set_errcall(OVDBenv, OVDBerror);
     OVDBenv->set_cachesize(OVDBenv, 0, ovdb_conf.cachesize, 1);
+#if DB_VERSION_MAJOR >= 4
+    OVDBenv->set_lk_max_locks(OVDBenv, ovdb_conf.maxlocks);
+    OVDBenv->set_lk_max_lockers(OVDBenv, ovdb_conf.maxlocks);
+    OVDBenv->set_lk_max_objects(OVDBenv, ovdb_conf.maxlocks);
+#else
     OVDBenv->set_lk_max(OVDBenv, ovdb_conf.maxlocks);
+#endif
 
 #if DB_VERSION_MAJOR >= 4 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR >= 2)
     if(ovdb_conf.txn_nosync)

> By the way, the last supported libdb is 4.4 (thanks to you).
> Is libdb 4.5 working fine?
No clue, I do not use OVDB.

-- 
ciao,
Marco

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic