The Samba-Bugzilla – Attachment 12368 Details for
Bug 12138
Fix uninitialized timeout in ctdb_pmda
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patches for v4-5 branch
BZ12138-v4-5.patch (text/plain), 1.29 KB, created by
Amitay Isaacs
on 2016-08-15 04:01:07 UTC
(
hide
)
Description:
Patches for v4-5 branch
Filename:
MIME Type:
Creator:
Amitay Isaacs
Created:
2016-08-15 04:01:07 UTC
Size:
1.29 KB
patch
obsolete
>From e87a8b6a671924598c01d69b47b8001ca4ecc37f Mon Sep 17 00:00:00 2001 >From: Amitay Isaacs <amitay@gmail.com> >Date: Tue, 2 Aug 2016 19:06:10 +1000 >Subject: [PATCH] ctdb-pmda: Use 1s timeout for fetching statistics > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=12138 > >Signed-off-by: Amitay Isaacs <amitay@gmail.com> >Reviewed-by: Jeremy Allison <jra@samba.org> >(cherry picked from commit 499bfce3e9138e01216170a25b12b404d7430a74) >--- > ctdb/utils/pmda/pmda_ctdb.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/ctdb/utils/pmda/pmda_ctdb.c b/ctdb/utils/pmda/pmda_ctdb.c >index 6131be9..a77f26c 100644 >--- a/ctdb/utils/pmda/pmda_ctdb.c >+++ b/ctdb/utils/pmda/pmda_ctdb.c >@@ -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"); >@@ -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(); >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
martins
:
review+
Actions:
View
Attachments on
bug 12138
: 12368