[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [lmdb] MDB_BAD_DBI error upon mdb_txn_commit (newbie question)
- To: openldap-technical@openldap.org
- Subject: Re: [lmdb] MDB_BAD_DBI error upon mdb_txn_commit (newbie question)
- From: hlaw <hhclaw.eb@gmail.com>
- Date: Thu, 2 Apr 2015 23:56:23 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kGVOgXErxyHoEslNnB0+KRK0LhWbqmvamMN2gn7SHMw=; b=OF2UhpLq9aYIauKQmMQP1034hcY9naO9ZKgH9wFGD/P1VNk3WIyi2YbxjElHZ6Z85r 8itXlO2mPEf6ElwGzDjaeocFSaIXzm/cdQfTfdti295W2AmxzTC9zvdpB9xtXpFbN9x5 zPGFUitkDK2j2IWsO5i2Hw5s7AX+nuMLfLuYJRjm85uLZhwh4BgbdLrhbIzbUEYyWioe nv1/urz9wMjlcAx/PBA3GksPyPArydSbUz5xkhG1gN/gJEPeEh33+9Ryn8sAo2hVOJP5 AgAVIMcSYaOrHxLNPqitiKEbKqE0/d4lcciKlQW3JIoeE/HgfZu7xTbA/uDUOGjP2nsA 2CIQ==
- In-reply-to: <551938EF.5010609@usit.uio.no>
- References: <55144663.3030706@gmail.com> <551938EF.5010609@usit.uio.no>
Thank you!
It appears that mdb_dbi_open() must be called before any read / write access to a database in a transaction, and all read / write have to be done in a transaction? If this is the case, is it correct that due to the concurrency restriction above, there is essentially no concurrent access (including read and write) to the same database in a multi-threaded process, since a database is available to one transaction in a time?