[MDEV-3458] LP:429773 - mysqlslap: specifying --engine and --create does not work with --engine=<storage_engine>:<option> Created: 2009-09-15  Updated: 2012-10-04  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Hakan Küçükyılmaz (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug429773.xml    

 Description   

How to repeat:

1) <option> is missing and does not work with replication
mysqlslap \
--delimiter=";" \
--create="CREATE TABLE A (a int);INSERT INTO A Values (23)" \
--query="SELECT * FROM A" \
--concurrency=1 \
--iterations=1 \
--engine=memory:max_rows=200 \
-vvvvv \
--post-system="echo SHOW CREATE TABLE A | mysql -uroot mysqlslap"

...
set storage_engine=`memory`;
CREATE TABLE A (a int);
INSERT INTO A Values (23);
Generating primary key list
connected!
SELECT * FROM A;
Table Create Table
A CREATE TABLE `A` (\n `a` int(11) DEFAULT NULL\n) ENGINE=MEMORY DEFAULT CHARSET=latin1
Generating stats
Benchmark
Running for engine memory
Average number of seconds to run all queries: 0.060 seconds
Minimum number of seconds to run all queries: 0.060 seconds
Maximum number of seconds to run all queries: 0.060 seconds
Number of clients running queries: 1
Average number of queries per client: 1

DROP SCHEMA IF EXISTS `mysqlslap`;

2) Crashing
mysqlslap \
--delimiter=";" \
--create="CREATE TABLE A (a int);INSERT INTO A Values (23)" \
--query="SELECT * FROM A" \
--concurrency=1 \
--iterations=1 \
--engine=memory:max_rows=200,innodb, myisam \
-vvvvv \
--post-system="echo SHOW CREATE TABLE A | mysql -uroot mysqlslap"

...
Parsing engines to use.
Segmentation fault

Both bugs are connected to an unintialized buffer usage.



 Comments   
Comment by Rasmus Johansson (Inactive) [ 2009-11-24 ]

Launchpad bug id: 429773

Generated at Thu Feb 08 06:48:47 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.