registry: Don't leave dangling transactions
authorVolker Lendecke <vl@samba.org>
Wed, 8 Oct 2014 13:39:28 +0000 (15:39 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 8 Oct 2014 13:54:04 +0000 (15:54 +0200)
commit4237138c464d7e2046de43b431ab9796f80182db
tree9cf3dfa566c4a9af857ef15d09afff4c6ed50a88
parentae72733874f474c24fdeb5d9bc718ddf9abf4b8f
registry: Don't leave dangling transactions

When a createkey fails due to access denied, we need to do a
transaction_cancel. Otherwise the lock on the db will stay around.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/registry/reg_api.c