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
ea218b44
Commit
ea218b44
authored
May 18, 2006
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make safe_connect retry faster after connect failure
parent
3a3690a9
Changes
1
Hide 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 @
ea218b44
...
...
@@ -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