From dimitrij.denissenko@blacksquaremedia.com Wed Jul 31 06:46:21 2013 From: dimitrij.denissenko@blacksquaremedia.com To: openldap-bugs@openldap.org Subject: Re: (ITS#7651) LMDB: Uncontrolled database when opened from multiple processes Date: Wed, 31 Jul 2013 06:46:21 +0000 Message-ID: <201307310646.r6V6kLl0030351@boole.openldap.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3080518927725040066==" --===============3080518927725040066== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable --001a11c21408c992a604e2c913b8 Content-Type: text/plain; charset=3DUTF-8 Yes, sorry, my example wasn't very good. I call mdb_env_create in both, the parent and the child. I will create an mtest8.c today to illustrate the problem. On 30 Jul 2013 23:34, "Hallvard Breien Furuseth" wrote: > Whoops, too hasty reply. Didn't notice your mdb_env_close(env) > before the fork. But do you mdb_env_create() again after? > mdb_env_close() destroys the MDB_env. > > -- > Hallvard > --001a11c21408c992a604e2c913b8 Content-Type: text/html; charset=3DUTF-8 Content-Transfer-Encoding: quoted-printable

Yes, sorry, my example wasn't very good. I call mdb_env_= =3D create in both, the parent and the child. I will create an mtest8.c today t=3D o illustrate the problem.

On 30 Jul 2013 23:34, "Hallvard Breien Furu= =3D seth" <h.b.furuseth(a= )usi=3D t.uio.no> wrote:
Whoops, too hasty reply. =3DC2=3DA0Didn't notice your mdb_env_close(env)<= br=3D > before the fork. =3DC2=3DA0But do you mdb_env_create() again after?
mdb_env_close() destroys the MDB_env.

--
Hallvard
--001a11c21408c992a604e2c913b8-- --===============3080518927725040066==--