maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #01563
[Branch ~maria-captains/maria/5.1] Rev 2768: Apply the strict aliasing patch from http://lists.mysql.com/commits/89843
------------------------------------------------------------
revno: 2768
committer: Bo Thorsen <bo.thorsen@xxxxxxxxxxxxx>
branch nick: trunk-local
timestamp: Thu 2009-11-26 16:32:49 +0100
message:
Apply the strict aliasing patch from http://lists.mysql.com/commits/89843
modified:
sql/log_event.cc
--
lp:maria
https://code.launchpad.net/~maria-captains/maria/5.1
Your team Maria developers is subscribed to branch lp:maria.
To unsubscribe from this branch go to https://code.launchpad.net/~maria-captains/maria/5.1/+edit-subscription.
=== modified file 'sql/log_event.cc'
--- sql/log_event.cc 2009-10-15 21:38:29 +0000
+++ sql/log_event.cc 2009-11-26 15:32:49 +0000
@@ -2133,8 +2133,8 @@
/**
Utility function for the next method (Query_log_event::write()) .
*/
-static void write_str_with_code_and_len(char **dst, const char *src,
- int len, uint code)
+static void write_str_with_code_and_len(uchar **dst, const char *src,
+ uint len, uint code)
{
/*
only 1 byte to store the length of catalog, so it should not
@@ -2229,7 +2229,7 @@
}
if (catalog_len) // i.e. this var is inited (false for 4.0 events)
{
- write_str_with_code_and_len((char **)(&start),
+ write_str_with_code_and_len(&start,
catalog, catalog_len, Q_CATALOG_NZ_CODE);
/*
In 5.0.x where x<4 masters we used to store the end zero here. This was
@@ -2267,7 +2267,7 @@
{
/* In the TZ sys table, column Name is of length 64 so this should be ok */
DBUG_ASSERT(time_zone_len <= MAX_TIME_ZONE_NAME_LENGTH);
- write_str_with_code_and_len((char **)(&start),
+ write_str_with_code_and_len(&start,
time_zone_str, time_zone_len, Q_TIME_ZONE_CODE);
}
if (lc_time_names_number)