Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c50ee6c2
Commit
c50ee6c2
authored
Apr 09, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-4088 Replication 10.0 -> 5.5 fails
parent
da7eca02
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
include/mysql_com.h
include/mysql_com.h
+7
-0
sql-common/client.c
sql-common/client.c
+6
-0
sql/sql_acl.cc
sql/sql_acl.cc
+1
-1
No files found.
include/mysql_com.h
View file @
c50ee6c2
...
@@ -34,6 +34,13 @@
...
@@ -34,6 +34,13 @@
#define MYSQL50_TABLE_NAME_PREFIX_LENGTH (sizeof(MYSQL50_TABLE_NAME_PREFIX)-1)
#define MYSQL50_TABLE_NAME_PREFIX_LENGTH (sizeof(MYSQL50_TABLE_NAME_PREFIX)-1)
#define SAFE_NAME_LEN (NAME_LEN + MYSQL50_TABLE_NAME_PREFIX_LENGTH)
#define SAFE_NAME_LEN (NAME_LEN + MYSQL50_TABLE_NAME_PREFIX_LENGTH)
#ifdef EMBEDDED_LIBRARY
#define RPL_VERSION_HACK ""
#else
/* this version must be the one that *does not* support pluggable auth */
#define RPL_VERSION_HACK "5.5.5-"
#endif
#define SERVER_VERSION_LENGTH 60
#define SERVER_VERSION_LENGTH 60
#define SQLSTATE_LENGTH 5
#define SQLSTATE_LENGTH 5
#define LIST_PROCESS_HOST_LEN 64
#define LIST_PROCESS_HOST_LEN 64
...
...
sql-common/client.c
View file @
c50ee6c2
...
@@ -3416,6 +3416,12 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
...
@@ -3416,6 +3416,12 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
strmov
(
mysql
->
server_version
,(
char
*
)
net
->
read_pos
+
1
);
strmov
(
mysql
->
server_version
,(
char
*
)
net
->
read_pos
+
1
);
mysql
->
port
=
port
;
mysql
->
port
=
port
;
/* remove the rpl hack from the version string */
if
(
mysql
->
server_capabilities
&
CLIENT_PLUGIN_AUTH
&&
strncmp
(
mysql
->
server_version
,
RPL_VERSION_HACK
,
sizeof
(
RPL_VERSION_HACK
)
-
1
)
==
0
)
mysql
->
server_version
+=
sizeof
(
RPL_VERSION_HACK
)
-
1
;
if
(
pkt_end
>=
end
+
SCRAMBLE_LENGTH
-
SCRAMBLE_LENGTH_323
+
1
)
if
(
pkt_end
>=
end
+
SCRAMBLE_LENGTH
-
SCRAMBLE_LENGTH_323
+
1
)
{
{
/*
/*
...
...
sql/sql_acl.cc
View file @
c50ee6c2
...
@@ -7957,7 +7957,7 @@ static bool send_server_handshake_packet(MPVIO_EXT *mpvio,
...
@@ -7957,7 +7957,7 @@ static bool send_server_handshake_packet(MPVIO_EXT *mpvio,
data_len
=
SCRAMBLE_LENGTH
;
data_len
=
SCRAMBLE_LENGTH
;
}
}
end
=
str
nmov
(
end
,
server_version
,
SERVER_VERSION_LENGTH
)
+
1
;
end
=
str
xnmov
(
end
,
SERVER_VERSION_LENGTH
,
RPL_VERSION_HACK
,
server_version
,
NullS
)
+
1
;
int4store
((
uchar
*
)
end
,
mpvio
->
thd
->
thread_id
);
int4store
((
uchar
*
)
end
,
mpvio
->
thd
->
thread_id
);
end
+=
4
;
end
+=
4
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment