dbcheck: Abandon dbcheck if we get an error during a transaction
commit0ccfa212e431238b6ca1623d4280041872d5126d
authorAndrew Bartlett <abartlet@samba.org>
Fri, 26 Aug 2016 03:53:19 +0000 (26 15:53 +1200)
committerStefan Metzmacher <metze@samba.org>
Tue, 6 Sep 2016 06:22:17 +0000 (6 08:22 +0200)
tree0cc849865fe3c475114180a42b4db72675c207bd
parentb005b5b2991583cc9a5d7008a0c71e4933fb9ffc
dbcheck: Abandon dbcheck if we get an error during a transaction

Otherwise, anything that the transaction has already done to the DB will be left in the DB
even despite the failure.  For example, if a fix wrote to the DB, but then failed a post-write
check, then the fix will not be unrolled.

This is because we do not have nested transactions in TDB.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12178

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Aug 29 12:46:21 CEST 2016 on sn-devel-144

(cherry picked from commit db32a0e5ea8f652857e45480cc31ecb1ef884c1a)
python/samba/dbchecker.py
testprogs/blackbox/dbcheck-oldrelease.sh