client: add req timeout argument to ctdb_cmdline_client
authorDavid Disseldorp <ddiss@suse.de>
Mon, 8 Aug 2011 12:09:46 +0000 (14:09 +0200)
committerDavid Disseldorp <ddiss@suse.de>
Tue, 6 Sep 2011 11:56:54 +0000 (13:56 +0200)
commit0634d0305f42f17048b6830733767e8dc300e11c
treea6731e6167d2c34a7b61cc9ff0e73f20f130d677
parent32320ee278d1eec9aef18b400c0ddaa445d4211e
client: add req timeout argument to ctdb_cmdline_client

Following connection to the local ctdbd, ctdb_cmdline_client() currently
issues a CTDB_CONTROL_GET_PNN request with a fixed 3 second timeout.

The ctdb cmd line client accepts a --timelimit argument for specifying
a per request timeout, pass this value through to ctdb_cmdline_client()
for use as a CTDB_CONTROL_GET_PNN request timeout.
common/cmdline.c
include/ctdb_client.h
tests/src/ctdb_bench.c
tests/src/ctdb_fetch.c
tests/src/ctdb_fetch_one.c
tests/src/ctdb_persistent.c
tests/src/ctdb_randrec.c
tests/src/ctdb_store.c
tests/src/ctdb_transaction.c
tests/src/ctdb_traverse.c
tools/ctdb.c