Blame SOURCES/0011-Fix-xml-Mark-xml-nodes-as-dirty-if-any-children-move.patch
|
 |
3d71c6 |
From: "Gao,Yan" <ygao@suse.com>
|
|
 |
3d71c6 |
Date: Wed, 26 Aug 2015 16:28:38 +0200
|
|
 |
3d71c6 |
Subject: [PATCH] Fix: xml: Mark xml nodes as dirty if any children move
|
|
 |
3d71c6 |
|
|
 |
3d71c6 |
Otherwise if nothing else changed in the new xml, even the versions
|
|
 |
3d71c6 |
weren't bumped, crm_diff would output an empty xml diff.
|
|
 |
3d71c6 |
|
|
 |
3d71c6 |
(cherry picked from commit 1073786ec24f3bbf26a0f6a5b0614a65edac4301)
|
|
 |
3d71c6 |
---
|
|
 |
3d71c6 |
lib/common/xml.c | 1 +
|
|
 |
3d71c6 |
1 file changed, 1 insertion(+)
|
|
 |
3d71c6 |
|
|
 |
3d71c6 |
diff --git a/lib/common/xml.c b/lib/common/xml.c
|
|
 |
3d71c6 |
index 299c7bf..353eb4b 100644
|
|
 |
3d71c6 |
--- a/lib/common/xml.c
|
|
 |
3d71c6 |
+++ b/lib/common/xml.c
|
|
 |
3d71c6 |
@@ -4275,6 +4275,7 @@ __xml_diff_object(xmlNode * old, xmlNode * new)
|
|
 |
3d71c6 |
if(p_old != p_new) {
|
|
 |
3d71c6 |
crm_info("%s.%s moved from %d to %d - %d",
|
|
 |
3d71c6 |
new_child->name, ID(new_child), p_old, p_new);
|
|
 |
3d71c6 |
+ __xml_node_dirty(new);
|
|
 |
3d71c6 |
p->flags |= xpf_moved;
|
|
 |
3d71c6 |
|
|
 |
3d71c6 |
if(p_old > p_new) {
|