Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
ctdb-pmda: Use 1s timeout for fetching statistics
Browse files Browse the repository at this point in the history
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12138

Signed-off-by: Amitay Isaacs <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
amitay authored and jrasamba committed Aug 11, 2016
1 parent e001dce commit 499bfce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ctdb/utils/pmda/pmda_ctdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ static int
pmda_ctdb_fetch(int numpmid, pmID pmidlist[], pmResult **resp, pmdaExt *pmda)
{
int ret;
struct timeval ctdb_timeout;

if (client == NULL) {
fprintf(stderr, "attempting reconnect to ctdbd\n");
Expand All @@ -453,7 +452,7 @@ pmda_ctdb_fetch(int numpmid, pmID pmidlist[], pmResult **resp, pmdaExt *pmda)
}

ret = ctdb_ctrl_statistics(client, ev, client, CTDB_CURRENT_NODE,
ctdb_timeout, &stats);
tevent_timeval_current_ofs(1,0), &stats);
if (ret != 0) {
fprintf(stderr, "ctdb control for statistics failed, reconnecting\n");
pmda_ctdb_daemon_disconnect();
Expand Down

0 comments on commit 499bfce

Please sign in to comment.