tdb: allow reads after prepare commit
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 25 Sep 2009 03:16:08 +0000 (12:46 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 25 Sep 2009 03:16:08 +0000 (12:46 +0930)
commit088b2a9f4a7dedf357d90e5e420062461f78a13b
tree62e60f92d9bbee7b54d9f828f0a817f35e89f00a
parent61088f5c752c555172e2ab6cf93a7967f79f3f2c
tdb: allow reads after prepare commit
(Imported from SAMBA commit 46c99ec2a3781d53138245182345c6c2ddd9a258:
From: Andrew Tridgell <tridge@samba.org>
Date: Tue, 15 Sep 2009 14:04:22 -0700

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.
ccan/tdb/transaction.c