ctdb/daemon: reloadips must register state of asynchronous controls
authorMartin Schwenke <martin@meltin.net>
Wed, 22 Jan 2014 05:02:46 +0000 (16:02 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 31 Jan 2014 02:36:04 +0000 (13:36 +1100)
Otherwise ctdb_client_async_wait() is a no-op.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_takeover.c

index b918e5a0c66ed7a20635bd7735ffb1befe784295..c21736ed0855a51ddeac60a588bb27b87f957dda 100644 (file)
@@ -4458,6 +4458,7 @@ static int ctdb_reloadips_child(struct ctdb_context *ctdb)
                                goto failed;
                        }
 
+                       ctdb_client_async_add(async_data, state);
                }
        }
 
@@ -4534,6 +4535,8 @@ static int ctdb_reloadips_child(struct ctdb_context *ctdb)
                                       " failed sending CTDB_CONTROL_ADD_PUBLIC_IP\n"));
                                goto failed;
                        }
+
+                       ctdb_client_async_add(async_data, state);
                }
        }