ldb-tools: Place the whole of an ldif file in a transactionldb-1.1.5
commite17d12c23b2f56d8d29f7ee43148be85d28154c6
authorAndrew Bartlett <abartlet@samba.org>
Wed, 4 Apr 2012 05:17:32 +0000 (4 15:17 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 Apr 2012 09:14:43 +0000 (10 11:14 +0200)
tree40f233b97d294c70536f1e597de4b130ecd09807
parent501d6d3dd4e3045e069bb2f7a52cf842dd1dfa67
ldb-tools: Place the whole of an ldif file in a transaction

This ensures that when operating ldbadd and ldbmodify against local
ldb files, either an ldif file succeeds or fails as a whole.

Also tests to verify that this is working correctly, and an ABI bump
due to the extra (private, but exported to ldb* tools) symbol and
behaviour change.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Apr 10 11:14:43 CEST 2012 on sn-devel-104
lib/ldb/tests/test-dup-2.ldif [new file with mode: 0644]
lib/ldb/tests/test-dup.ldif [new file with mode: 0644]
lib/ldb/tests/test-generic.sh
lib/ldb/tests/test-modify-unmet-2.ldif [new file with mode: 0644]
lib/ldb/tests/test-modify-unmet.ldif [new file with mode: 0644]
lib/ldb/tools/ldbadd.c
lib/ldb/tools/ldbmodify.c