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, 29 Jul 2009 14:26:29 +0000 (16:26 +0200)
Now secrets.tdb is only writen with transactions.

Michael

source3/passdb/secrets.c

index 2fab765d876702610d56768491d3fcf4ea9e72a9..b063f07aecc928886467ce33f33ba7a7dc6b6e99 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);
        }
 }