mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
[master] fix cache/ADB stats in new stats schema
new stats that were added for 9.10 (changes 3319-3326) were not all updated when the new statistics schema was merged (change 3418). 3484. [bug] Some statistics were incorrectly rendered in XML. [RT #32587]
This commit is contained in:
@@ -1400,15 +1400,14 @@ static int
|
||||
renderstat(const char *name, isc_uint64_t value, xmlTextWriterPtr writer) {
|
||||
int xmlrc;
|
||||
|
||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "cachestat"));
|
||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "name"));
|
||||
TRY0(xmlTextWriterWriteString(writer, ISC_XMLCHAR name));
|
||||
TRY0(xmlTextWriterEndElement(writer)); /* name */
|
||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "value"));
|
||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counter"));
|
||||
TRY0(xmlTextWriterWriteAttribute(writer,
|
||||
ISC_XMLCHAR "name", ISC_XMLCHAR name));
|
||||
TRY0(xmlTextWriterWriteFormatString(writer,
|
||||
"%" ISC_PRINT_QUADFORMAT "u", value));
|
||||
TRY0(xmlTextWriterEndElement(writer)); /* value */
|
||||
TRY0(xmlTextWriterEndElement(writer)); /* cachestat */
|
||||
"%" ISC_PRINT_QUADFORMAT "u",
|
||||
value));
|
||||
TRY0(xmlTextWriterEndElement(writer)); /* counter */
|
||||
|
||||
error:
|
||||
return (xmlrc);
|
||||
}
|
||||
|
Reference in New Issue
Block a user