lib ldb key value: add nested transaction support.
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 6 Mar 2019 21:37:18 +0000 (10:37 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 21 Jun 2019 04:27:12 +0000 (04:27 +0000)
commit565341baf537c9b3145a882d6a23ad4f155c0036
treece7efb0ad778c0d782b73b79f6661723520f668c
parentd7dc4fde4080513e2a62fabbdeee546bd74b9a0d
lib ldb key value: add nested transaction support.

Use the nested transaction support added to the key value back ends to
make key value operations atomic. This will ensure that rename
operation failures, which delete the original record and add a new
record, leave the database in a consistent state.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ldb_key_value/ldb_kv.c
lib/ldb/ldb_key_value/ldb_kv.h