summaryrefslogtreecommitdiff
path: root/mysql-test/t/heap_hash.test
diff options
context:
space:
mode:
authoringo@mysql.com <>2005-06-24 17:47:09 +0200
committeringo@mysql.com <>2005-06-24 17:47:09 +0200
commit2dcf451b81d8b11395f1abe02f00dae80eafea6a (patch)
treecdb8c2576769d4678d13b4b2a6b8cc5d2eafd5f5 /mysql-test/t/heap_hash.test
parentb0e6db14c54a621bfcfafb3a65d87124e43c47aa (diff)
downloadmariadb-git-2dcf451b81d8b11395f1abe02f00dae80eafea6a.tar.gz
Bug#10178 - failure to find a row in heap table by concurrent UPDATEs
Moved the key statistics update to info(). The table is not locked in open(). This made wrong stats possible. No test case for the test suite. This happens only with heavy concurrency. A test script is added to the bug report.
Diffstat (limited to 'mysql-test/t/heap_hash.test')
-rw-r--r--mysql-test/t/heap_hash.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/t/heap_hash.test b/mysql-test/t/heap_hash.test
index 6d27f19dfad..59af50da932 100644
--- a/mysql-test/t/heap_hash.test
+++ b/mysql-test/t/heap_hash.test
@@ -169,6 +169,8 @@ explain select * from t1 where a='aaac';
explain select * from t1 where a='aaad';
insert into t1 select * from t1;
+# avoid statistics differences between normal and ps-protocol tests
+flush tables;
explain select * from t1 where a='aaaa';
explain select * from t1 where a='aaab';
explain select * from t1 where a='aaac';