diff options
author | mronstrom@mysql.com <> | 2005-06-03 17:13:43 +0200 |
---|---|---|
committer | mronstrom@mysql.com <> | 2005-06-03 17:13:43 +0200 |
commit | 96252c1de935a4a4bf388dcde1df5a8394c32ff4 (patch) | |
tree | e497fef16e21c7ab513489de1f8d6a87f275505a /mysql-test/r | |
parent | 7bd3dd7cb319e901290846544c6a518dfcef0baa (diff) | |
download | mariadb-git-96252c1de935a4a4bf388dcde1df5a8394c32ff4.tar.gz |
Bug #10901
Analyze table corrupts the state on
data_file_length, records, index_file_length...
by writing the shared state when there is an updated internal
state due to inserts or deletes
Fixed by synching the shared state with the internal state before
writing it to disk
Added test cases of 2 error cases and a normal case in new
analyze test case
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/analyze.result | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mysql-test/r/analyze.result b/mysql-test/r/analyze.result new file mode 100644 index 00000000000..0b44a502b13 --- /dev/null +++ b/mysql-test/r/analyze.result @@ -0,0 +1,32 @@ +create table t1 (a bigint); +lock tables t1 write; +insert into t1 values(0); +analyze table t1; +Table Op Msg_type Msg_text +test.t1 analyze status OK +unlock tables; +check table t1; +Table Op Msg_type Msg_text +test.t1 check status OK +drop table t1; +create table t1 (a bigint); +insert into t1 values(0); +lock tables t1 write; +delete from t1; +analyze table t1; +Table Op Msg_type Msg_text +test.t1 analyze status OK +unlock tables; +check table t1; +Table Op Msg_type Msg_text +test.t1 check status OK +drop table t1; +create table t1 (a bigint); +insert into t1 values(0); +analyze table t1; +Table Op Msg_type Msg_text +test.t1 analyze status OK +check table t1; +Table Op Msg_type Msg_text +test.t1 check status OK +drop table t1; |