ldb_tdb: Provide better debugging on prepare_commit failures
commita2a1962dc083346fb53b93eab54ca5c3636b15d3
authorAndrew Bartlett <abartlet@samba.org>
Thu, 30 Mar 2017 01:26:23 +0000 (30 14:26 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 22 May 2017 23:13:24 +0000 (23 01:13 +0200)
tree9273c8596fdca2d4979bff031864008bab595524
parent1fd8ec23c769d15a2de8ad6c96698e92a91b3f64
ldb_tdb: Provide better debugging on prepare_commit failures

ltdb_index_transaction_commit() does LDB operations, sets the ldb
error string and returns LDB errors so we should not check the tdb
error code.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/ldb/ldb_tdb/ldb_tdb.c