[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: LMDB: successive fillups and drops break the DB after a while



Dominik Taborsky wrote:


On 11/25/2015 02:27 PM, Howard Chu wrote:
Dominik Taborsky wrote:

If anyone has any idea what might be the issue, please let me know. I know deleting the DB from filesystem and creating a new one would work, but that's a hack, not a fix.

Your calculation of max_pages vs used_pages is totally bogus. There's nothing wrong with LMDB.

Thanks for checking it out, Howard, but can you please advise on how to compute a safe buffer then?

Read mdb_stat.c, follow how it computes the number of free pages.

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