summaryrefslogtreecommitdiffstats
path: root/heal
diff options
context:
space:
mode:
Diffstat (limited to 'heal')
-rw-r--r--heal/src/glfs-heal.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c
index e885dd9fe63..2a85e755151 100644
--- a/heal/src/glfs-heal.c
+++ b/heal/src/glfs-heal.c
@@ -119,6 +119,7 @@ glfsh_xml_init ()
/* <bricks> */
xmlTextWriterStartElement (glfsh_writer,
(xmlChar *)"bricks");
+ xmlTextWriterFlush (glfsh_writer);
xml_out:
return ret;
}
@@ -217,7 +218,9 @@ glfsh_print_xml_heal_op_status (int ret, uint64_t num_entries, char *fmt_str)
"%"PRIu64"", num_entries);
}
out:
- return xmlTextWriterEndElement (glfsh_writer);
+ ret = xmlTextWriterEndElement (glfsh_writer);
+ xmlTextWriterFlush (glfsh_writer);
+ return ret;
}
void
@@ -228,6 +231,7 @@ glfsh_print_xml_file_status (char *path, uuid_t gfid, char *status)
"%s", uuid_utoa (gfid));
xmlTextWriterWriteFormatString (glfsh_writer, "%s", path);
xmlTextWriterEndElement (glfsh_writer);
+ xmlTextWriterFlush (glfsh_writer);
return;
}
@@ -268,6 +272,7 @@ print:
remote_host ? remote_host : "-",
remote_subvol ? remote_subvol : "-");
XML_RET_CHECK_AND_GOTO (x_ret, xml_out);
+ xmlTextWriterFlush (glfsh_writer);
xml_out:
return ret;
}