summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-07-29 14:39:30 +0200
committerMichael Adam <obnox@samba.org>2009-07-29 16:26:25 +0200
commitbd34de10bc4f814c943c5deac0028fc2cc8a1f12 (patch)
treec21d2470c568110fe8cc5fbf4f23e16d9a338129
parent05794380395bad93aac5b225e07a446864740e78 (diff)
downloadsamba-bd34de10bc4f814c943c5deac0028fc2cc8a1f12.tar.gz
samba-bd34de10bc4f814c943c5deac0028fc2cc8a1f12.tar.bz2
samba-bd34de10bc4f814c943c5deac0028fc2cc8a1f12.zip
s3:winbind: use transaction in idmap_tdb2_allocate_id_action().
This uses the new dbwrap_trans_change_uint32_atomic() instead of dbwrap_change_uint32_atomic(). Now all db write operations in idmap_tdb2.c are using transactions. Michael
-rw-r--r--source3/winbindd/idmap_tdb2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_tdb2.c b/source3/winbindd/idmap_tdb2.c
index 8178fa0080..ef365f3ea8 100644
--- a/source3/winbindd/idmap_tdb2.c
+++ b/source3/winbindd/idmap_tdb2.c
@@ -225,7 +225,7 @@ static NTSTATUS idmap_tdb2_allocate_id_action(struct db_context *db,
}
/* fetch a new id and increment it */
- ret = dbwrap_change_uint32_atomic(db, state->hwmkey, &hwm, 1);
+ ret = dbwrap_trans_change_uint32_atomic(db, state->hwmkey, &hwm, 1);
if (!NT_STATUS_IS_OK(ret)) {
DEBUG(1, ("Fatal error while fetching a new %s value\n!",
state->hwmtype));