s3:registry: wrap reg_createkey() in a transaction
commitdb9a3fe28703c8af91eb2af3c212799d067d72bb
authorMichael Adam <obnox@samba.org>
Thu, 12 Apr 2012 20:17:35 +0000 (12 22:17 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 22 Jun 2012 19:41:22 +0000 (22 21:41 +0200)
tree3556b73ef53345e421f807f9a7886fe701356c5c
parent88cdd9c3c13c8f7510e364d1062ae50cf3c460fa
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.
(cherry picked from commit 65d9b116d0283b010e9e3c9ecf185ca42850838e)
(cherry picked from commit 14d9621c39c67872316c6d4f11387b7c3a6dbb00)
source3/registry/reg_api.c