1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:dbwrap: add wrappers for transactions start/cancel/commit

This commit is contained in:
Michael Adam 2011-08-17 22:51:12 +02:00
parent d8ce5bc656
commit 373b0606a3
2 changed files with 18 additions and 0 deletions

View File

@ -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);
}

View File

@ -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 */