Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ClusterLabs/pacemaker
Browse files Browse the repository at this point in the history
  • Loading branch information
beekhof committed Jul 4, 2013
2 parents 37b9108 + 5053ba6 commit 3463b39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
7 changes: 1 addition & 6 deletions lib/cluster/corosync.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ init_cs_connection(crm_cluster_t * cluster)
gboolean
init_cs_connection_once(crm_cluster_t * cluster)
{
const char *uuid = NULL;
crm_node_t *peer = NULL;
enum cluster_type_e stack = get_cluster_type();

Expand Down Expand Up @@ -359,11 +358,7 @@ init_cs_connection_once(crm_cluster_t * cluster)

/* Ensure the local node always exists */
peer = crm_get_peer(cluster->nodeid, cluster->uname);
uuid = get_corosync_uuid(peer);

if(uuid) {
cluster->uuid = strdup(uuid);
}
cluster->uuid = get_corosync_uuid(peer);

return TRUE;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/cluster/cpg.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@ send_cluster_text(int class, const char *data,
crm_trace("Queueing CPG message %u to %s (%d bytes, %d bytes payload): %.200s",
msg->id, target, iov->iov_len, msg->size, data);
}
free(target);

#if SUPPORT_PLUGIN
/* The plugin is the only time we dont use CPG messaging */
Expand All @@ -627,7 +628,6 @@ send_cluster_text(int class, const char *data,

send_cpg_iov(iov);

free(target);
return TRUE;
}

Expand Down
7 changes: 1 addition & 6 deletions lib/cluster/legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,6 @@ extern int set_cluster_type(enum cluster_type_e type);
gboolean
init_cs_connection_once(crm_cluster_t * cluster)
{
const char *uuid = NULL;
crm_node_t *peer = NULL;
enum cluster_type_e stack = get_cluster_type();

Expand Down Expand Up @@ -687,11 +686,7 @@ init_cs_connection_once(crm_cluster_t * cluster)

/* Ensure the local node always exists */
peer = crm_get_peer(cluster->nodeid, cluster->uname);
uuid = get_corosync_uuid(peer);

if(uuid) {
cluster->uuid = strdup(uuid);
}
cluster->uuid = get_corosync_uuid(peer);

return TRUE;
}
Expand Down

0 comments on commit 3463b39

Please sign in to comment.