s3:registry: wrap reg_createkey() in a transaction
commit32ac4f4b34dd2788498f0c09c946532165d6af74
authorMichael Adam <obnox@samba.org>
Thu, 12 Apr 2012 20:17:35 +0000 (12 22:17 +0200)
committerAndreas Schneider <asn@samba.org>
Wed, 25 Apr 2012 12:31:10 +0000 (25 14:31 +0200)
tree9fa76681175a8e4b5c97dcac420df954bc6e884f
parent1af68be008a11bffdf78d70c8d1635003a3c4407
s3:registry: wrap reg_createkey() in a transaction

This is wrong layering (calling into regdb_transaction* in the reg_api code)
but fixes a potential race. It makes the multi-step create procedure atomic.

This should completely be done in the backend.

Signed-off-by: Andreas Schneider <asn@samba.org>
source3/registry/reg_api.c