pacemaker/bug-815447_pacemaker-cib-strip-text-nodes.patch

27 lines
798 B
Diff

diff --git a/cib/io.c b/cib/io.c
index 26f0aea..1700967 100644
--- a/cib/io.c
+++ b/cib/io.c
@@ -681,6 +681,8 @@ write_cib_contents(gpointer p)
}
}
+ strip_text_nodes(cib_local);
+
tmp_cib = g_strdup_printf("%s/cib.XXXXXX", cib_root);
tmp_digest = g_strdup_printf("%s/cib.XXXXXX", cib_root);
diff --git a/lib/cib/cib_utils.c b/lib/cib/cib_utils.c
index 6353d1d..2c21f02 100644
--- a/lib/cib/cib_utils.c
+++ b/lib/cib/cib_utils.c
@@ -491,7 +491,7 @@ cib_perform_op(const char *op, int call_options, cib_op_t * fn, gboolean is_quer
}
crm_trace("Massaging CIB contents");
- strip_text_nodes(scratch);
+ /*strip_text_nodes(scratch);*/
fix_plus_plus_recursive(scratch);
/* The diff calculation in cib_config_changed() accounts for 25% of the