summaryrefslogtreecommitdiff
path: root/lib/tdb/include
diff options
context:
space:
mode:
authorHoward Chu <hyc@highlandsun.com>2009-03-31 13:15:54 +1100
committerAndrew Tridgell <tridge@samba.org>2009-03-31 13:15:54 +1100
commitb90863c0b7b860b006ac49c9396711ff351f777f (patch)
treef284c69be0d0a9bc8794027cd55135474d64b5c5 /lib/tdb/include
parent4b8e4ea7286f045effb6feb4c7bf8c5ef4ed2f9b (diff)
downloadsamba-b90863c0b7b860b006ac49c9396711ff351f777f.tar.gz
samba-b90863c0b7b860b006ac49c9396711ff351f777f.tar.bz2
samba-b90863c0b7b860b006ac49c9396711ff351f777f.zip
Add tdb_transaction_prepare_commit()
Using tdb_transaction_prepare_commit() gives us 2-phase commits. This allows us to safely commit across multiple tdb databases at once, with reasonable transaction semantics Signed-off-by: tridge@samba.org
Diffstat (limited to 'lib/tdb/include')
-rw-r--r--lib/tdb/include/tdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tdb/include/tdb.h b/lib/tdb/include/tdb.h
index 94b5e366b9..22496f56f0 100644
--- a/lib/tdb/include/tdb.h
+++ b/lib/tdb/include/tdb.h
@@ -129,6 +129,7 @@ int tdb_fd(struct tdb_context *tdb);
tdb_log_func tdb_log_fn(struct tdb_context *tdb);
void *tdb_get_logging_private(struct tdb_context *tdb);
int tdb_transaction_start(struct tdb_context *tdb);
+int tdb_transaction_prepare_commit(struct tdb_context *tdb);
int tdb_transaction_commit(struct tdb_context *tdb);
int tdb_transaction_cancel(struct tdb_context *tdb);
int tdb_transaction_recover(struct tdb_context *tdb);