Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
pacemaker
pacemaker-attrd-client-name.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-attrd-client-name.patch of Package pacemaker
commit 6968a8b8c48a63af8c813ed47652662cbce837be Author: Andrew Beekhof <andrew@beekhof.net> Date: Thu Jan 7 11:28:14 2016 +1100 Fix: attrd: Hook up the client name so we can track requests diff --git a/attrd/main.c b/attrd/main.c index 069e9fa..0198396 100644 --- a/attrd/main.c +++ b/attrd/main.c @@ -226,6 +226,11 @@ attrd_ipc_dispatch(qb_ipcs_connection_t * c, void *data, size_t size) op = crm_element_value(xml, F_ATTRD_TASK); + if (client->name == NULL) { + const char *value = crm_element_value(xml, F_ORIG); + client->name = crm_strdup_printf("%s.%d", value?value:"unknown", client->pid); + } + if (safe_str_eq(op, ATTRD_OP_PEER_REMOVE)) { attrd_send_ack(client, id, flags); attrd_client_peer_remove(client->name, xml);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor