we must also check the status returned from the get tickles control to
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 14 Oct 2008 21:33:37 +0000 (08:33 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 14 Oct 2008 21:33:37 +0000 (08:33 +1100)
determine whether it was successful or not

client/ctdb_client.c

index 401830002bac03a7f838ed79051c88cda02b2501..07c0b8820a70537f93dc7c2d3be4ba3cd9408259 100644 (file)
@@ -2538,7 +2538,7 @@ int ctdb_ctrl_get_tcp_tickles(struct ctdb_context *ctdb,
        ret = ctdb_control(ctdb, destnode, 0, 
                           CTDB_CONTROL_GET_TCP_TICKLE_LIST, 0, data, 
                           mem_ctx, &outdata, &status, NULL, NULL);
-       if (ret != 0) {
+       if (ret != 0 || status != 0) {
                DEBUG(DEBUG_ERR,(__location__ " ctdb_control for get tcp tickles failed\n"));
                return -1;
        }