ctdb-cluster-mutex: Separate out command and file handling
commite0720c16c430693b6eb444131560ff6661a65aba
authorMartin Schwenke <martin@meltin.net>
Mon, 21 Jan 2019 01:16:43 +0000 (21 12:16 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 5 Mar 2019 19:29:13 +0000 (5 19:29 +0000)
treee36f165b17a7fb1f63af317ad29b59c4a351e7bf
parentc39430b0ae6218dd987410b045fed65e18f39709
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

(cherry picked from commit c93430fe8fe530a55b9a04cf6cc660c3d420e333)
ctdb/server/ctdb_cluster_mutex.c