ctdb-tests: Shut down transaction_loop clients more cleanly
authorMartin Schwenke <martin@meltin.net>
Wed, 3 Oct 2018 06:39:16 +0000 (16:39 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 8 Oct 2018 00:46:23 +0000 (02:46 +0200)
commitd67d8ed44ac9beba7fdec0ceda56136f781fe19b
tree33d7f0ddf17488f3c8172caf70022f003afdff9c
parent2aa006a31117769dd440661cf54394590c4b8f11
ctdb-tests: Shut down transaction_loop clients more cleanly

A transaction_loop client can exit with a transaction active when its
time limit expires.  This causes a recovery and causes problems with
the test cleanup, which detects unwanted recoveries and fails.

Set a flag when the time limit expires and exit cleanly before the
next transaction is started.

Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/src/transaction_loop.c