summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2012-02-24 12:38:13 -0800
committerSage Weil <sage.weil@dreamhost.com>2012-02-24 12:40:13 -0800
commitfdaed0a7a21911b7c0964894ab7f8031fccca555 (patch)
tree3f51d9da6d0b32c42305d68de0de3f05a3cc9497
parent185c6b1fd83a0362c5cdb9fb81e4787107472180 (diff)
downloadceph-fdaed0a7a21911b7c0964894ab7f8031fccca555.tar.gz
formatter: fix trailing dump_stream()
Flush a previous dump_stream() if it was the last thing prior to a close_section(). Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
-rw-r--r--src/common/Formatter.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/Formatter.cc b/src/common/Formatter.cc
index 95f8606217e..30dbf2dfc6f 100644
--- a/src/common/Formatter.cc
+++ b/src/common/Formatter.cc
@@ -272,6 +272,7 @@ void XMLFormatter::open_array_section_in_ns(const char *name, const char *ns)
void XMLFormatter::close_section()
{
assert(!m_sections.empty());
+ finish_pending_string();
print_spaces(false);
m_ss << "</" << m_sections.back() << ">";