Re: mdb_drop in lmdb
by Howard Chu
Conrad Steenberg wrote:
> [resending to the list, doesn't seem to have gotten through]
>
> Hi there,
>
> I'm in the process of creating a binding for lmdb for the Crack
> language. So far everything works really well, except that I'm not sure
> about the workings of mdb_drop() to clear all the items from a database.
>
> Is there an example usage somewhere that I can look at?
The definitive example of how to use LMDB is OpenLDAP slapd back-mdb. mdb_drop
is used in back-mdb/tools.c.
You can also take a look at the dict_lmdb.c driver in Postfix 2.11 for another
example.
> Basically for an already open db handle inside an MDB_env I do
> _tmpTxn = mdb_txn_begin(_env, NULL, 0)
> mdb_drop(_tmpTxn, _dbi, 0)
> mdb_txn_commit(_tmpTxn)
> mdb_reader_check(_env)
>
> However, when the db is opened again with mdb_dbi_open() I sometimes get
> MDB_BAD_RSLOT: Invalid reuse of reader locktable slot
That seems a bit odd, mdb_dbi_open() cannot return MDB_BAD_RSLOT.
> I'm sure I'm missing a step somewhere! Any ideas?
Might help to see your actual code that causes this situation.
>
> Thanks!
> Conrad
>
>
>
>
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
9 years, 8 months
next release
by Howard Chu
A lot of my recent commits are actually intended for OpenLDAP 2.5. A few of
the recent TLS-related changes added to the libldap API, so one way or another
they will require a library version bump. The question is whether these
changes should go into the next 2.4 release:
channel binding support
OpenSSL elliptic curve support
logging tls version/cipher info
It seems that given the heightened awareness of encryption matters due to
recent revelations about NSA data gathering, it might be a good idea to
include these in 2.4 as well. Any opinions?
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
9 years, 9 months
EC_KEY undefined in master (was: openldap.git branch master updated)
by Hallvard Breien Furuseth
openldap-commit2devel(a)OpenLDAP.org writes:
> commit e631ce808ed56119e61321463d06db7999ba5a08
> Author: Howard Chu <hyc(a)openldap.org>
> Date: Sat Sep 7 09:47:19 2013 -0700
>
> ITS#7595 Add Elliptic Curve support for OpenSSL
tls_o.c:326: error: 'EC_KEY' undeclared.
/usr/include/openssl/ssl.h has #define SSL_OP_SINGLE_ECDH_USE 0x00080000L.
"grep -w EC_KEY /usr/include/openssl/*.h" finds nothing.
OPENSSL_VERSION_NUMBER = 0x10000003L.
--
Hallvard
9 years, 9 months