summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb/include/ldb.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-15 14:07:06 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-15 14:07:06 -0700
commita99e216a47259ca2c2837b1ea95c995c5e5a4968 (patch)
tree258d053dcbd6a21aa5b75c25bcc3523f7322a67c /source4/lib/ldb/include/ldb.h
parent80c4b1e43e67249996cea61cc761911ff9fecbde (diff)
downloadsamba-a99e216a47259ca2c2837b1ea95c995c5e5a4968.tar.gz
samba-a99e216a47259ca2c2837b1ea95c995c5e5a4968.tar.xz
samba-a99e216a47259ca2c2837b1ea95c995c5e5a4968.zip
s4-ldb: expose ldb_transaction_prepare_commit() in ldb
It is useful to be able to control the 2 phase commit from application code (s4 replication uses it)
Diffstat (limited to 'source4/lib/ldb/include/ldb.h')
-rw-r--r--source4/lib/ldb/include/ldb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h
index 04b0a22fc1..2c89031919 100644
--- a/source4/lib/ldb/include/ldb.h
+++ b/source4/lib/ldb/include/ldb.h
@@ -1284,6 +1284,11 @@ int ldb_sequence_number(struct ldb_context *ldb, enum ldb_sequence_type type, ui
int ldb_transaction_start(struct ldb_context *ldb);
/**
+ first phase of two phase commit
+ */
+int ldb_transaction_prepare_commit(struct ldb_context *ldb);
+
+/**
commit a transaction
*/
int ldb_transaction_commit(struct ldb_context *ldb);