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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
aaddac5c
Commit
aaddac5c
authored
Aug 23, 2017
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compile errors
parent
58cd69fc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
extra/mariabackup/CMakeLists.txt
extra/mariabackup/CMakeLists.txt
+0
-1
sql/proxy_protocol.cc
sql/proxy_protocol.cc
+2
-2
tests/mysql_client_test.c
tests/mysql_client_test.c
+1
-1
No files found.
extra/mariabackup/CMakeLists.txt
View file @
aaddac5c
...
@@ -73,7 +73,6 @@ MYSQL_ADD_EXECUTABLE(mariabackup
...
@@ -73,7 +73,6 @@ MYSQL_ADD_EXECUTABLE(mariabackup
backup_mysql.cc
backup_mysql.cc
backup_copy.cc
backup_copy.cc
encryption_plugin.cc
encryption_plugin.cc
${
PROJECT_SOURCE_DIR
}
/sql/net_serv.cc
${
NT_SERVICE_SOURCE
}
${
NT_SERVICE_SOURCE
}
${
PROJECT_SOURCE_DIR
}
/libmysqld/libmysql.c
${
PROJECT_SOURCE_DIR
}
/libmysqld/libmysql.c
COMPONENT backup
COMPONENT backup
...
...
sql/proxy_protocol.cc
View file @
aaddac5c
...
@@ -53,8 +53,8 @@ static int parse_v1_header(char *hdr, size_t len, proxy_peer_info *peer_info)
...
@@ -53,8 +53,8 @@ static int parse_v1_header(char *hdr, size_t len, proxy_peer_info *peer_info)
return
-
1
;
return
-
1
;
}
}
if
(
client_port
<
0
||
client_port
>
UINT16_MAX
if
(
client_port
<
0
||
client_port
>
0xffff
||
server_port
<
0
||
server_port
>
UINT16_MAX
)
||
server_port
<
0
||
server_port
>
0xffff
)
return
-
1
;
return
-
1
;
if
(
!
strcmp
(
address_family
,
"UNKNOWN"
))
if
(
!
strcmp
(
address_family
,
"UNKNOWN"
))
...
...
tests/mysql_client_test.c
View file @
aaddac5c
...
@@ -19679,7 +19679,7 @@ static void test_proxy_header_tcp(const char *ipaddr, int port)
...
@@ -19679,7 +19679,7 @@ static void test_proxy_header_tcp(const char *ipaddr, int port)
int
i
;
int
i
;
// normalize IPv4-mapped IPv6 addresses, e.g ::ffff:192.168.0.1 to 192.168.0.1
// normalize IPv4-mapped IPv6 addresses, e.g ::ffff:192.168.0.1 to 192.168.0.1
char
*
normalized_addr
=
strncmp
(
ipaddr
,
"::ffff:"
,
7
)
?
ipaddr
:
ipaddr
+
7
;
c
onst
c
har
*
normalized_addr
=
strncmp
(
ipaddr
,
"::ffff:"
,
7
)
?
ipaddr
:
ipaddr
+
7
;
memset
(
&
v2_header
,
0
,
sizeof
(
v2_header
));
memset
(
&
v2_header
,
0
,
sizeof
(
v2_header
));
sprintf
(
text_header
,
"PROXY %s %s %s %d 3306
\r\n
"
,
family
==
AF_INET
?
"TCP4"
:
"TCP6"
,
ipaddr
,
ipaddr
,
port
);
sprintf
(
text_header
,
"PROXY %s %s %s %d 3306
\r\n
"
,
family
==
AF_INET
?
"TCP4"
:
"TCP6"
,
ipaddr
,
ipaddr
,
port
);
...
...
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