summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-08-17 22:51:12 +0200
committerMichael Adam <obnox@samba.org>2011-10-11 14:17:56 +0200
commit373b0606a35bfb213411dde163058d6ae0486f06 (patch)
tree6c79247fd04516b6b7fd5daca2074b2a2c67d232 /source3
parentd8ce5bc656a673612f6587fefbe3acb08d5d8fa0 (diff)
downloadsamba-373b0606a35bfb213411dde163058d6ae0486f06.tar.gz
samba-373b0606a35bfb213411dde163058d6ae0486f06.tar.bz2
samba-373b0606a35bfb213411dde163058d6ae0486f06.zip
s3:dbwrap: add wrappers for transactions start/cancel/commit
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/dbwrap/dbwrap.c15
-rw-r--r--source3/lib/dbwrap/dbwrap.h3
2 files changed, 18 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap.c b/source3/lib/dbwrap/dbwrap.c
index 3cbd699910..5a61bed886 100644
--- a/source3/lib/dbwrap/dbwrap.c
+++ b/source3/lib/dbwrap/dbwrap.c
@@ -217,3 +217,18 @@ int dbwrap_get_flags(struct db_context *db)
{
return db->get_flags(db);
}
+
+int dbwrap_transaction_start(struct db_context *db)
+{
+ return db->transaction_start(db);
+}
+
+int dbwrap_transaction_commit(struct db_context *db)
+{
+ return db->transaction_commit(db);
+}
+
+int dbwrap_transaction_cancel(struct db_context *db)
+{
+ return db->transaction_cancel(db);
+}
diff --git a/source3/lib/dbwrap/dbwrap.h b/source3/lib/dbwrap/dbwrap.h
index 79e215acad..8a0bee8f97 100644
--- a/source3/lib/dbwrap/dbwrap.h
+++ b/source3/lib/dbwrap/dbwrap.h
@@ -80,6 +80,9 @@ int dbwrap_parse_record(struct db_context *db, TDB_DATA key,
void *private_data);
int dbwrap_wipe(struct db_context *db);
int dbwrap_get_flags(struct db_context *db);
+int dbwrap_transaction_start(struct db_context *db);
+int dbwrap_transaction_commit(struct db_context *db);
+int dbwrap_transaction_cancel(struct db_context *db);
/* The following definitions come from lib/dbwrap_util.c */