1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-11 00:23:51 +03:00

r10477: expose transactions outside ldb and change the API once more

do not autostart transactions on ldb operations if a transaction is already in place
test transactions on winsdb

all my tests passes so far
tridge please confirm this is ok for you
This commit is contained in:
Simo Sorce
2005-09-24 15:42:15 +00:00
committed by Gerald (Jerry) Carter
parent e09ffdfb1d
commit c2bb2a36bd
19 changed files with 293 additions and 105 deletions

View File

@@ -462,11 +462,18 @@ static int lldb_start_trans(struct ldb_module *module)
return 0;
}
static int lldb_end_trans(struct ldb_module *module, int status)
static int lldb_end_trans(struct ldb_module *module)
{
/* TODO implement a local transaction mechanism here */
return status;
return 0;
}
static int lldb_del_trans(struct ldb_module *module)
{
/* TODO implement a local transaction mechanism here */
return 0;
}
static const struct ldb_module_ops lldb_ops = {
@@ -478,7 +485,8 @@ static const struct ldb_module_ops lldb_ops = {
.delete_record = lldb_delete,
.rename_record = lldb_rename,
.start_transaction = lldb_start_trans,
.end_transaction = lldb_end_trans
.end_transaction = lldb_end_trans,
.del_transaction = lldb_del_trans
};