summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-07-29 15:21:49 +0200
committerMichael Adam <obnox@samba.org>2009-07-29 16:26:30 +0200
commitd498532389df7b1f6b1d01e47166f5697a742147 (patch)
treea99598323701fd3c7d7ce4f699c824128151e9a5
parent8da2f93716c23056a9de4a418bc29252a3b5b592 (diff)
downloadsamba-d498532389df7b1f6b1d01e47166f5697a742147.tar.gz
samba-d498532389df7b1f6b1d01e47166f5697a742147.tar.bz2
samba-d498532389df7b1f6b1d01e47166f5697a742147.zip
s3:passdb: use transaction_wrapped write in tdbsam_new_rid()
Now all tdb writes in passdb use transactions. Michael
-rw-r--r--source3/passdb/pdb_tdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index e32711ec45..c413ec3be7 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -1084,7 +1084,8 @@ static bool tdbsam_new_rid(struct pdb_methods *methods, uint32 *prid)
return false;
}
- status = dbwrap_change_uint32_atomic(db_sam, NEXT_RID_STRING, &rid, 1);
+ status = dbwrap_trans_change_uint32_atomic(db_sam, NEXT_RID_STRING,
+ &rid, 1);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(3, ("tdbsam_new_rid: Failed to increase %s: %s\n",
NEXT_RID_STRING, nt_errstr(status)));