diff options
author | Michael Adam <obnox@samba.org> | 2009-07-29 15:15:54 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-07-29 16:26:29 +0200 |
commit | 8da2f93716c23056a9de4a418bc29252a3b5b592 (patch) | |
tree | 9c6217063f576b77e6d678c54f035b6bb5b16ec4 | |
parent | ae58ff981df4acadb43f0c89e75b760538673bf4 (diff) | |
download | samba-8da2f93716c23056a9de4a418bc29252a3b5b592.tar.gz samba-8da2f93716c23056a9de4a418bc29252a3b5b592.tar.bz2 samba-8da2f93716c23056a9de4a418bc29252a3b5b592.zip |
s3:secrets: use transaction wrapped store in get rand seed.
Now secrets.tdb is only writen with transactions.
Michael
-rw-r--r-- | source3/passdb/secrets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c index 2fab765d87..b063f07aec 100644 --- a/source3/passdb/secrets.c +++ b/source3/passdb/secrets.c @@ -44,8 +44,8 @@ static void get_rand_seed(void *userdata, int *new_seed) { *new_seed = sys_getpid(); if (db_ctx) { - dbwrap_change_int32_atomic(db_ctx, "INFO/random_seed", - new_seed, 1); + dbwrap_trans_change_int32_atomic(db_ctx, "INFO/random_seed", + new_seed, 1); } } |