~tsarev/percona-server/5.5_log_queries_in_memory

« back to all changes in this revision

Viewing changes to patches/slowlog_in_memory.patch

  • Committer: Oleg Tsarev
  • Date: 2012-01-11 05:32:17 UTC
  • Revision ID: zabivator@gmail.com-20120111053217-xw67855mzwu18kxm
add little example of incorrect work

Show diffs side-by-side

added added

removed removed

Lines of Context:
740
740
+$SLOW_LOG_IN_MEMORY_AUDIT_OPT
741
741
--- /dev/null
742
742
+++ b/mysql-test/t/slow_log_in_memory.test
743
 
@@ -0,0 +1,61 @@
 
743
@@ -0,0 +1,66 @@
744
744
+--source include/have_debug.inc
745
745
+--source include/have_slog_log_in_memory_audit_plugin.inc
746
746
+
776
776
+select * from information_schema.slow_log;
777
777
+
778
778
+--echo # decrease max_memory and wash eldest
779
 
+set global slow_log_in_memory_audit_max_memory=240;
 
779
+set global slow_log_in_memory_audit_max_memory=360;
780
780
+connection con1;
781
781
+use information_schema;
782
782
+SET long_query_time=2;
783
783
+SET query_exec_time=2.1;
784
784
+select 1;
785
785
+SET query_exec_time=0;
 
786
+SET log_slow_filter='filesort';
 
787
+SET query_exec_time=2.1;
 
788
+select 1;
 
789
+SET log_slow_filter=default;
 
790
+SET query_exec_time=0;
786
791
+--replace_column 2 XX
787
792
+show global status like 'slow_log_current_memory';
788
793
+--replace_column 2 XX 3 XX 5 XX