maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #00857
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-20090831212214-wg9fwhgnhx1ly6w2
parent: knielsen@xxxxxxxxxxxxxxx-20090805072137-wg97dcem1cxnzt3p
committer: Hakan Kuecuekyilmaz <hakan@xxxxxxxxxxxx>
branch nick: maria
timestamp: Mon 2009-08-31 23:22:14 +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?
=== modified file 'client/mysqlslap.c'
--- a/client/mysqlslap.c 2009-04-25 10:05:32 +0000
+++ b/client/mysqlslap.c 2009-08-31 21:22:14 +0000
@@ -880,6 +880,12 @@
}
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,