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

Re: (ITS#9116) LMDB: Bogus BAD_DBI result on read-only txn



hyc@openldap.org wrote:
> Full_Name: Howard Chu
> Version: 0.9.24
> OS: Linux
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (84.203.24.208)
> Submitted by: hyc
> 
> 
> There are some cases when renewing a cursor in a read-only txn that may return
> MDB_BAD_DBI if the DBI has gone stale. This error is spurious, the check is only
> supposed to be done in writable txns (see ITS#7825).

A patch was pushed to mdb.master, but it is apparently not actually needed. The
actual problem was caused by reusing a readtxn that had been left open after its
original env had been closed and re-opened. This is a misuse of the API, all txns
must be closed before closing the env.

Ignore this issue.

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