s3:registry: wrap reg_createkey() in a transaction
authorMichael Adam <obnox@samba.org>
Thu, 12 Apr 2012 20:17:35 +0000 (22:17 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 10 May 2012 09:15:25 +0000 (11:15 +0200)
commit14d9621c39c67872316c6d4f11387b7c3a6dbb00
tree78299046fce0fa4d783d4e65fea5f7bc31f8370d
parent95ba1aa132e6097a0d35cbc05296427aebdf21b1
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)
source3/registry/reg_api.c