summaryrefslogtreecommitdiff
path: root/sql/opt_trace_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/opt_trace_context.h')
-rw-r--r--sql/opt_trace_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/opt_trace_context.h b/sql/opt_trace_context.h
index f578a0c67ec..ae77c94fdc2 100644
--- a/sql/opt_trace_context.h
+++ b/sql/opt_trace_context.h
@@ -114,6 +114,12 @@ public:
bool is_enabled();
+ void abort_trace()
+ {
+ delete current_trace;
+ current_trace= NULL;
+ }
+
void missing_privilege();
static const char *flag_names[];