Skip to content

Commit

Permalink
Medium: crmd: Send out all of the meta parameters to lrmd for stop ac…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
gao-yan committed Oct 17, 2011
1 parent 44c4bf9 commit fcfe6fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crmd/lrm.c
Expand Up @@ -1449,9 +1449,9 @@ do_lrm_invoke(long long action,
}

static void
copy_notify_keys(gpointer key, gpointer value, gpointer user_data)
copy_meta_keys(gpointer key, gpointer value, gpointer user_data)
{
if (strstr(key, CRM_META "_notify_") != NULL) {
if (strstr(key, CRM_META "_") != NULL) {
g_hash_table_insert(user_data, strdup((const char *)key), strdup((const char *)value));
}
}
Expand Down Expand Up @@ -1526,7 +1526,7 @@ construct_op(xmlNode * rsc_op, const char *rsc_id, const char *operation)
g_hash_table_insert(op->params, crm_strdup(XML_ATTR_CRM_VERSION), crm_strdup(version));
}

g_hash_table_foreach(params, copy_notify_keys, op->params);
g_hash_table_foreach(params, copy_meta_keys, op->params);
g_hash_table_destroy(params);
params = NULL;
}
Expand Down

0 comments on commit fcfe6fe

Please sign in to comment.