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

List:       openldap-devel
Subject:    Re: MDB_TOOL mode vs. large mdb_env_set_maxreaders()?
From:       Howard Chu <hyc () symas ! com>
Date:       2014-08-28 20:28:16
Message-ID: 53FF90E0.4030307 () symas ! com
[Download RAW message or body]

Hallvard Breien Furuseth wrote:
> If an lmdb application configures a non-default maxreaders,
> this setting is ignored if a tool like mdb_copy is already
> running (maybe from crontab).
>
> I suggest mdb_copy & co should use an MDB_TOOL env flag
> which requires the lockfile (if any) to be valid, and only
> partly reinitializes it.  The upcoming MDB_ROBUST flag might
> also make use of this.  An alternative would be to stuff
> this into the metapages, but that seems less flexible.
>
Require it to be valid - how? We could try reading the maxreaders out of it, 
but how do we know that it's actually valid?

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

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

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