ctdb-pmda: CTDB client code does not require ctdb->methods
authorAmitay Isaacs <amitay@gmail.com>
Mon, 27 Jun 2016 08:37:27 +0000 (18:37 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 5 Jul 2016 08:53:15 +0000 (10:53 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/utils/pmda/pmda_ctdb.c

index 7055d16..f644c65 100644 (file)
@@ -274,10 +274,6 @@ err_ev:
 static void
 pmda_ctdb_daemon_disconnect(void)
 {
-       if (ctdb->methods) {
-               ctdb->methods->shutdown(ctdb);
-       }
-
        if (ctdb->daemon.sd != -1) {
                close(ctdb->daemon.sd);
        }