maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #00893
Rev 2720: Fix for in file:///Users/hakan/work/monty_program/maria/
At file:///Users/hakan/work/monty_program/maria/
------------------------------------------------------------
revno: 2720
revision-id: hakan@xxxxxxxxxxxx-20090903163555-hds72helhcy5htqq
parent: knielsen@xxxxxxxxxxxxxxx-20090805072137-wg97dcem1cxnzt3p
committer: Hakan Kuecuekyilmaz <hakan@xxxxxxxxxxxx>
branch nick: maria
timestamp: Thu 2009-09-03 18:35:55 +0200
message:
Fix for
mysqlslap: setting --engine does not get replicated
http://bugs.mysql.com/bug.php?id=46967
Problem was that a "set storage_engine = <storage_engine>"
is not replicated.
Fixed by adding an explicit
Engine = <storage_engine>
to the build_table_string() function.
Open question:
Should MySQL's replication actually replicate the
set storage_engine command or not? Answer: no it should
not (documented).
=== modified file 'client/mysqlslap.c'
--- a/client/mysqlslap.c 2009-04-25 10:05:32 +0000
+++ b/client/mysqlslap.c 2009-09-03 16:35:55 +0000
@@ -880,6 +880,13 @@
}
dynstr_append(&table_string, ")");
+
+ if (default_engine)
+ {
+ dynstr_append(&table_string, " Engine = ");
+ dynstr_append(&table_string, default_engine);
+ }
+
ptr= (statement *)my_malloc(sizeof(statement),
MYF(MY_ZEROFILL|MY_FAE|MY_WME));
ptr->string = (char *)my_malloc(table_string.length+1,