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
919f8e69
Commit
919f8e69
authored
May 18, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make safe_connect retry faster after connect failure
parent
fd74518e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
client/mysqltest.c
client/mysqltest.c
+3
-3
No files found.
client/mysqltest.c
View file @
919f8e69
...
...
@@ -2518,7 +2518,7 @@ int safe_connect(MYSQL* mysql, const char *host, const char *user,
{
int
con_error
=
1
;
my_bool
reconnect
=
1
;
static
int
connection_retry_sleep
=
2
;
/* S
econds */
static
ulong
connection_retry_sleep
=
100000
;
/* Micros
econds */
int
i
;
for
(
i
=
0
;
i
<
opt_max_connect_retries
;
i
++
)
{
...
...
@@ -2528,7 +2528,7 @@ int safe_connect(MYSQL* mysql, const char *host, const char *user,
con_error
=
0
;
break
;
}
sleep
(
connection_retry_sleep
);
my_
sleep
(
connection_retry_sleep
);
}
/*
TODO: change this to 0 in future versions, but the 'kill' test relies on
...
...
@@ -3298,7 +3298,7 @@ static struct my_option my_long_options[] =
{
"max-connect-retries"
,
OPT_MAX_CONNECT_RETRIES
,
"Max number of connection attempts when connecting to server"
,
(
gptr
*
)
&
opt_max_connect_retries
,
(
gptr
*
)
&
opt_max_connect_retries
,
0
,
GET_INT
,
REQUIRED_ARG
,
5
,
1
,
1
0
,
0
,
0
,
0
},
GET_INT
,
REQUIRED_ARG
,
5
00
,
1
,
1000
0
,
0
,
0
,
0
},
{
"password"
,
'p'
,
"Password to use when connecting to server."
,
0
,
0
,
0
,
GET_STR
,
OPT_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"port"
,
'P'
,
"Port number to use for connection."
,
(
gptr
*
)
&
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