From 67e4f431d6787cdc4f634b3a73d0b8cab0a06a90 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 27 Mar 2004 02:29:31 +0400 Subject: fixed bug #2342 "Running ANALYZE TABLE on bdb table inside a transaction hangs server thread" mysql-test/r/bdb-crash.result: added test for bug #2342 "Running ANALYZE TABLE on bdb table inside a transaction hangs server thread" mysql-test/t/bdb-crash.test: added test for bug #2342 "Running ANALYZE TABLE on bdb table inside a transaction hangs server thread" sql/handler.h: added constant HA_ADMIN_REJECT sql/sql_table.cc: added processing of HA_ADMIN_REJECT in ha_berkley::analyze --- mysql-test/t/bdb-crash.test | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mysql-test/t/bdb-crash.test') diff --git a/mysql-test/t/bdb-crash.test b/mysql-test/t/bdb-crash.test index fffed379e79..cea69df6993 100644 --- a/mysql-test/t/bdb-crash.test +++ b/mysql-test/t/bdb-crash.test @@ -36,3 +36,16 @@ INSERT INTO t1 VALUES(NULL,1,'2001-03-01',1,1,1,'New',NULL,NULL,'now'); select * from t1; drop table t1; + +# +# Test for bug #2342 "Running ANALYZE TABLE on bdb table +# inside a transaction hangs server thread" +# + +create table t1 (a int) engine=bdb; + +set autocommit=0; +insert into t1 values(1); +analyze table t1; +drop table t1; + -- cgit v1.2.1