summaryrefslogtreecommitdiff
path: root/sql/my_json_writer.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/my_json_writer.h')
-rw-r--r--sql/my_json_writer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/my_json_writer.h b/sql/my_json_writer.h
index bf654db5759..3ad069dcc4f 100644
--- a/sql/my_json_writer.h
+++ b/sql/my_json_writer.h
@@ -392,12 +392,14 @@ protected:
public:
+#ifdef ENABLED_JSON_WRITER_CONSISTENCY_CHECKS
virtual ~Json_writer_struct()
{
-#ifdef ENABLED_JSON_WRITER_CONSISTENCY_CHECKS
named_items_expectation.pop_back();
-#endif
}
+#else
+ virtual ~Json_writer_struct() = default;
+#endif
bool trace_started() const
{