ctdb-mutex: Change parent checking to use an asynchronous computation
authorMartin Schwenke <martin@meltin.net>
Thu, 27 Jun 2019 03:45:01 +0000 (13:45 +1000)
committerMartin Schwenke <martins@samba.org>
Fri, 26 Jul 2019 03:34:17 +0000 (03:34 +0000)
commitfae8e438f019e7c1d20582f167b3adeac781ddbe
treec1e1e34389f3c0f83fc1abe8c57d1431e852d538
parent2f768a090e0a1f34660227e1aedc0ed03ea98534
ctdb-mutex: Change parent checking to use an asynchronous computation

Put the checking for the process being immediately re-parented into
the computation too.  This will be very rare and doing it
consistently makes testing saner.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_mutex_fcntl_helper.c
ctdb/tests/cunit/cluster_mutex_001.sh
ctdb/tests/cunit/cluster_mutex_002.sh
ctdb/tests/cunit/cluster_mutex_003.sh
ctdb/wscript