diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2008-10-03 08:40:45 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2008-10-03 08:40:45 -0300 |
commit | 30d46cac5addbed32a0a1a1f88dcbfe39025896c (patch) | |
tree | 0e0046a22a14632751b349189e11c3189e38bfe5 /client/mysqlslap.c | |
parent | b0e03c1311be8b39d4ce805b1075bab45b265f7e (diff) | |
download | mariadb-git-30d46cac5addbed32a0a1a1f88dcbfe39025896c.tar.gz |
Bug#37481: status.test fails randomly
The problem was that the test was trying to obtain a lock on
a table in one connection without ensuring that a insert which
was executed in another connection had released the lock on the
same table.
The solution is to add a dummy select query after the insert to
ensure that the table is unlocked and closed by the time it tries
to lock it again. This is enough to prevent test failures described
in the bug report. As an extra safety measure, concurrent inserts
are disabled.
Remove comments that calculated the Table_locks_immediate. This
value is not tested anymore and it's calculation did not reflect
the actual value.
mysql-test/r/status.result:
Update test case result.
mysql-test/t/status.test:
Issue a dummy select to ensure that tables are unlocked after a
insert and disable concurrent inserts as a extra-safety.
Diffstat (limited to 'client/mysqlslap.c')
0 files changed, 0 insertions, 0 deletions