ldb: fixed a race in ldb initialisation
authorAndrew Tridgell <tridge@samba.org>
Tue, 18 Oct 2011 00:21:34 +0000 (11:21 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 18 Oct 2011 01:54:42 +0000 (03:54 +0200)
commit75953f18469fa8746d9d8ad20bbbb3bcbd0df9dd
treed4daa3fa116d9e7b792e34eda406e8dfba538195
parent3a4fa654d5ba42ae78a132f54a7edfa722b367f0
ldb: fixed a race in ldb initialisation

This fixes a race when two processes initialise the same ldb database
at the same time. One of them could fail due to the other creating the
@BASEINFO record first.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Oct 18 03:54:42 CEST 2011 on sn-devel-104
lib/ldb/ldb_tdb/ldb_cache.c