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:
parent
d8ce5bc656
commit
373b0606a3
@ -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);
|
||||
}
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user