git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8da2f93
)
s3:passdb: use transaction_wrapped write in tdbsam_new_rid()
author
Michael Adam
<obnox@samba.org>
Wed, 29 Jul 2009 13:21:49 +0000
(15:21 +0200)
committer
Michael Adam
<obnox@samba.org>
Wed, 29 Jul 2009 14:26:30 +0000
(16:26 +0200)
Now all tdb writes in passdb use transactions.
Michael
source3/passdb/pdb_tdb.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_tdb.c
b/source3/passdb/pdb_tdb.c
index e32711ec45b0f0bf4771709675a98aed6b720571..c413ec3be72bfaf1917d47f414e887fa7d85f15f 100644
(file)
--- 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)));