ctdb-cluster-mutex: Separate out command and file handling
authorMartin Schwenke <martin@meltin.net>
Mon, 21 Jan 2019 01:16:43 +0000 (12:16 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 25 Feb 2019 02:40:16 +0000 (03:40 +0100)
commitc93430fe8fe530a55b9a04cf6cc660c3d420e333
tree93ffde5fe28dad06edc08c55b86cfc4cafecd15f
parentebc082122fb34ffb8cbcafde9ad39bcc241d33ed
ctdb-cluster-mutex: Separate out command and file handling

This code is difficult to read and there really is no common code
between the 2 cases.  For example, there is no need to split a
filename into words.  Separating each of the 2 cases into its own
function makes the logic much easier to understand.

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

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Mon Feb 25 03:40:16 CET 2019 on sn-devel-144
ctdb/server/ctdb_cluster_mutex.c