ctdb-cluster-mutex: Separate out command and file handling
commiteb16d3b7bc112b0faece3a304d339b3effd0713a
authorMartin Schwenke <martin@meltin.net>
Mon, 21 Jan 2019 01:16:43 +0000 (21 12:16 +1100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 4 Mar 2019 10:37:54 +0000 (4 10:37 +0000)
treef8423f59a1ec5f244595bfb1b7830c2a16976618
parent65c3c5801ff47ce48a7061f47c00bcd61c7c3c1e
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)
(cherry picked from commit d5131afc533102ed5adfb147bf1a316e51810729)
ctdb/server/ctdb_cluster_mutex.c