s3:registry: provide transaction_start|commit|cancel fns for the registry tdb
authorMichael Adam <obnox@samba.org>
Tue, 24 Feb 2009 10:23:52 +0000 (11:23 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 24 Feb 2009 10:23:52 +0000 (11:23 +0100)
Michael

source/registry/reg_backend_db.c

index 1e2e8aa3721dbd0e54e6977ca32589a4a4950365..6a00df7ded08a2240fb045e9acf7633dc3d482cd 100644 (file)
@@ -474,6 +474,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