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

Fwd: Re: Aw: Re: LMDB get value





-------- Original Message --------
Subject: Re: Aw: Re: LMDB get value
Date: Sat, 01 Mar 2014 13:39:47 -0800
From: Howard Chu <hyc@symas.com>
To: Markus Doppelbauer <doppelbauer@gmx.net>
CC:

Markus Doppelbauer wrote:
You are right. Thanks a lot!
An other question. Is there a "define"-option to compile LMDB without a
dependency to "libpthread"? (We will replace Daniel Bernsteins "CDB" for
performance reasons with LMDB - so locking is not required).

No, nor is such a flag needed. LMDB readers do no locking anyway. If you're
replacing CDB, then none of this matters.

Thanks a lot
Markus
*Gesendet:* Samstag, 01. MÃrz 2014 um 17:04 Uhr
*Von:* "Howard Chu" <hyc@symas.com>
*An:* "Markus Doppelbauer" <doppelbauer@gmx.net>, openldap-technical@openldap.org
*Betreff:* Re: LMDB get value
Markus Doppelbauer wrote:
 > Hello,
 > Test case (modified sample-mdb.c):
 > http://doppelbauer.name/bug.c.txt
 > If I run this proram the first time, LMDB finds the key. The second time,
 > mdb_cursor_get() returns NOTFOUND.
 > How to fix this issue?

You're using an invalid dbi the second time, you didn't call mdb_dbi_open().

 > Thanks a lot
 > Markus


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


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