s3:secrets: use transaction wrapped store in get rand seed.
authorMichael Adam <obnox@samba.org>
Wed, 29 Jul 2009 13:15:54 +0000 (15:15 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 10 Mar 2010 12:22:00 +0000 (13:22 +0100)
Now secrets.tdb is only writen with transactions.

Michael

source3/passdb/secrets.c

index d8023068594294ddb38b986fa53196ecca55a1e0..806bd4d1f64429c8b0a0d61ce969360ab83b5e7c 100644 (file)
@@ -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);
        }
 }