client: Change timeout to 10 seconds for the call to ctdb_ctrl_getpnn()
authorMartin Schwenke <martin@meltin.net>
Wed, 14 Aug 2013 09:17:46 +0000 (19:17 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 14 Aug 2013 09:24:06 +0000 (19:24 +1000)
A more flexible solution would be to backport the patch to add a
timeout argument to ctdb_cmdline_client() but that breaks to many
things for this branch.

Signed-off-by: Martin Schwenke <martin@meltin.net>
common/cmdline.c

index 145a13a81b7be3b2b97dc3b2d2e5fa8e02793650..2c7b2cddb8efda4cfe10352f8a340e2487d1a273 100644 (file)
@@ -152,7 +152,7 @@ struct ctdb_context *ctdb_cmdline_client(struct event_context *ev)
        }
 
        /* get our pnn */
-       ctdb->pnn = ctdb_ctrl_getpnn(ctdb, timeval_current_ofs(3, 0), CTDB_CURRENT_NODE);
+       ctdb->pnn = ctdb_ctrl_getpnn(ctdb, timeval_current_ofs(10, 0), CTDB_CURRENT_NODE);
        if (ctdb->pnn == (uint32_t)-1) {
                DEBUG(DEBUG_CRIT,(__location__ " Failed to get ctdb pnn\n"));
                talloc_free(ctdb);