summaryrefslogtreecommitdiff
path: root/mysql-test/t/innodb-autoinc-optimize.test
diff options
context:
space:
mode:
authorTimothy Smith <timothy.smith@sun.com>2008-07-31 15:47:57 -0600
committerTimothy Smith <timothy.smith@sun.com>2008-07-31 15:47:57 -0600
commitdc593c3ec4f4d4e44ed6874c414952ee51bb6074 (patch)
tree773f01cc9c9fb65d9ced161f082b655de5738b17 /mysql-test/t/innodb-autoinc-optimize.test
parentb19155258e5e9ae40735c71234277dfc05092ec4 (diff)
downloadmariadb-git-dc593c3ec4f4d4e44ed6874c414952ee51bb6074.tar.gz
Cherry-pick InnoDB fixes for Bug#34286, Bug#35352, and Bug#36600 from snapshot
innodb-5.0-ss2475. Bug #34286 Assertion failure in thread 2816 in file .\row\row0sel.c line 3500 Since autoinc init performs a MySQL SELECT query to determine the auto-inc value, set prebuilt->sql_stat_start = TRUE so that it is performed like any normal SELECT, regardless of the context in which it was invoked. Bug #35352 If InnoDB crashes with UNDO slots full error the error persists on restart We've added a heuristic that checks the size of the UNDO slots cache lists (insert and upate). If either of cached lists has more than 500 entries then we add any UNDO slots that are freed, to the common free list instead of the cache list, this is to avoid the case where all the free slots end up in only one of the lists on startup after a crash. Tested with test case for 26590 and passes all mysql-test(s). Bug #36600 SHOW STATUS takes a lot of CPU in buf_get_latched_pages_number Fixed by removing the Innodb_buffer_pool_pages_latched variable from SHOW STATUS output in non-UNIV_DEBUG compilation.
Diffstat (limited to 'mysql-test/t/innodb-autoinc-optimize.test')
-rw-r--r--mysql-test/t/innodb-autoinc-optimize.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/innodb-autoinc-optimize.test b/mysql-test/t/innodb-autoinc-optimize.test
new file mode 100644
index 00000000000..c7e22a8ff40
--- /dev/null
+++ b/mysql-test/t/innodb-autoinc-optimize.test
@@ -0,0 +1,16 @@
+-- source include/have_innodb.inc
+# embedded server ignores 'delayed', so skip this
+-- source include/not_embedded.inc
+
+--disable_warnings
+drop table if exists t1;
+--enable_warnings
+
+#
+# Bug 34286
+#
+create table t1(a int not null auto_increment primary key) engine=innodb;
+insert into t1 set a = -1;
+# NOTE: The database needs to be shutdown and restarted (here) for
+# the test to work. It's included for reference only.
+optimize table t1;