summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-02-24 10:44:48 +0100
committerMichael Adam <obnox@samba.org>2009-02-26 11:05:22 +0100
commitba0e944c46b5c5e11c2539e15c9fe099a6c39fd1 (patch)
tree8b577799a893ff536fab5412eedd8f75f339effe /source3/registry
parent170830c0089088e7e30a3aa2d0c6d65b01ab83a0 (diff)
downloadsamba-ba0e944c46b5c5e11c2539e15c9fe099a6c39fd1.tar.gz
samba-ba0e944c46b5c5e11c2539e15c9fe099a6c39fd1.tar.bz2
samba-ba0e944c46b5c5e11c2539e15c9fe099a6c39fd1.zip
s3:registry: provide transaction_start|commit|cancel fns for the registry tdb
Michael
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_db.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 689bd1038e..960e884404 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -482,6 +482,24 @@ int regdb_close( void )
return 0;
}
+WERROR regdb_transaction_start(void)
+{
+ return (regdb->transaction_start(regdb) == 0) ?
+ WERR_OK : WERR_REG_IO_FAILURE;
+}
+
+WERROR regdb_transaction_commit(void)
+{
+ return (regdb->transaction_commit(regdb) == 0) ?
+ WERR_OK : WERR_REG_IO_FAILURE;
+}
+
+WERROR regdb_transaction_cancel(void)
+{
+ return (regdb->transaction_cancel(regdb) == 0) ?
+ WERR_OK : WERR_REG_IO_FAILURE;
+}
+
/***********************************************************************
return the tdb sequence number of the registry tdb.
this is an indicator for the content of the registry