tdb: allow reads after prepare commit
authorAndrew Tridgell <tridge@samba.org>
Tue, 15 Sep 2009 21:04:22 +0000 (14:04 -0700)
committerStefan Metzmacher <metze@samba.org>
Wed, 16 Dec 2009 07:03:46 +0000 (08:03 +0100)
commit5ef5ddb8369e5e76173285fe9a08498dc8dc73ab
tree8148bdfeb7c4b51a2ebc213e57a22514d8a54214
parentef1dc585d869a9e48164cd65bafc92c1da245007
tdb: allow reads after prepare commit

We previously only allowed a commit to happen after a prepare
commit. It is in fact safe to allow reads between a prepare and a
commit, and the s4 replication code can make use of that, so allow it.
(cherry picked from samba commit 46c99ec2a3781d53138245182345c6c2ddd9a258)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/common/transaction.c