Skip to content

Commit

Permalink
High: cib: Remove text nodes from cib replace operations
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvossel committed Dec 17, 2012
1 parent 3035414 commit c2550cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/crm_internal.h
Expand Up @@ -205,6 +205,7 @@ void crm_send_remote_msg(void *session, xmlNode * msg, gboolean encrypted);
const char *daemon_option(const char *option);
void set_daemon_option(const char *option, const char *value);
gboolean daemon_option_enabled(const char *daemon, const char *option);
void strip_text_nodes(xmlNode *xml);

# define crm_config_err(fmt...) { crm_config_error = TRUE; crm_err(fmt); }
# define crm_config_warn(fmt...) { crm_config_warning = TRUE; crm_warn(fmt); }
Expand Down
1 change: 1 addition & 0 deletions lib/cib/cib_utils.c
Expand Up @@ -501,6 +501,7 @@ cib_perform_op(const char *op, int call_options, cib_op_t * fn, gboolean is_quer
}

if (rc == pcmk_ok) {
strip_text_nodes(scratch);
fix_plus_plus_recursive(scratch);
current_dtd = crm_element_value(scratch, XML_ATTR_VALIDATION);

Expand Down
2 changes: 1 addition & 1 deletion lib/common/xml.c
Expand Up @@ -696,7 +696,7 @@ decompress_file(const char *filename)
return buffer;
}

static void strip_text_nodes(xmlNode *xml)
void strip_text_nodes(xmlNode *xml)
{
xmlNode *iter = xml->children;

Expand Down

0 comments on commit c2550cb

Please sign in to comment.