[Maria-developers] [PATCH] Make innodb_bug57255.test 10-20 times faster
Real simple patch, makes the test run much faster if using a real storage device without libeatmydata. patch should be appliable (just change the path) ------------------------------------------------------------ revno: 2477 committer: Stewart Smith <stewart@flamingspork.com> branch nick: update-innobase timestamp: Tue 2010-12-07 13:40:36 +1100 message: make innodb_bug57255 test run 10-20 times faster (use a txn when loading data) modified: plugin/innobase/tests/t/innodb_bug57255.test diff: === modified file 'plugin/innobase/tests/t/innodb_bug57255.test' --- plugin/innobase/tests/t/innodb_bug57255.test 2010-12-07 02:40:01 +0000 +++ plugin/innobase/tests/t/innodb_bug57255.test 2010-12-07 02:40:36 +0000 @@ -12,6 +12,7 @@ insert into A values(1), (2); --disable_query_log +begin; let $i=257; while ($i) { @@ -24,6 +25,7 @@ insert into C(f1) values(2); dec $i; } +commit; --enable_query_log # Following Deletes should not report error -- Stewart Smith
Hi!
"Stewart" == Stewart Smith <stewart@flamingspork.com> writes:
Stewart> Real simple patch, makes the test run much faster if using a real Stewart> storage device without libeatmydata. Stewart> patch should be appliable (just change the path) <cut> Stewart> === modified file 'plugin/innobase/tests/t/innodb_bug57255.test' Stewart> --- plugin/innobase/tests/t/innodb_bug57255.test 2010-12-07 02:40:01 +0000 Stewart> +++ plugin/innobase/tests/t/innodb_bug57255.test 2010-12-07 02:40:36 +0000 Stewart> @@ -12,6 +12,7 @@ Stewart> insert into A values(1), (2); Stewart> --disable_query_log Stewart> +begin; Stewart> let $i=257; Stewart> while ($i) Stewart> { Stewart> @@ -24,6 +25,7 @@ Stewart> insert into C(f1) values(2); Stewart> dec $i; Stewart> } Stewart> +commit; Stewart> --enable_query_log Thanks! Now applied in MariaDB 5.2 Regards, Monty
On Tue, Dec 07, 2010 at 13:44:04 +1100, Stewart Smith wrote:
Real simple patch, makes the test run much faster if using a real storage device without libeatmydata. [...]
Committed, thanks! http://lists.mysql.com/commits/126730 -- Vasil Dimov moc.elcaro@vomid.lisav % Everlasting peace will come to the world when the last man has slain the last but one. -- Adolph Hitler
participants (3)
-
Michael Widenius
-
Stewart Smith
-
Vasil Dimov