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
0879aeae
Commit
0879aeae
authored
Dec 04, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
into neptunus.(none):/home/msvensson/mysql/mysql-5.1-maint
parents
971c783f
2f79d20b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
client/mysqltest.c
client/mysqltest.c
+23
-2
mysql-test/lib/mtr_misc.pl
mysql-test/lib/mtr_misc.pl
+1
-0
No files found.
client/mysqltest.c
View file @
0879aeae
...
@@ -725,6 +725,20 @@ void close_connections()
...
@@ -725,6 +725,20 @@ void close_connections()
}
}
void
close_statements
()
{
struct
st_connection
*
con
;
DBUG_ENTER
(
"close_statements"
);
for
(
con
=
connections
;
con
<
next_con
;
con
++
)
{
if
(
con
->
stmt
)
mysql_stmt_close
(
con
->
stmt
);
con
->
stmt
=
0
;
}
DBUG_VOID_RETURN
;
}
void
close_files
()
void
close_files
()
{
{
DBUG_ENTER
(
"close_files"
);
DBUG_ENTER
(
"close_files"
);
...
@@ -2901,6 +2915,10 @@ void do_close_connection(struct st_command *command)
...
@@ -2901,6 +2915,10 @@ void do_close_connection(struct st_command *command)
}
}
}
}
#endif
#endif
if
(
next_con
->
stmt
)
mysql_stmt_close
(
next_con
->
stmt
);
next_con
->
stmt
=
0
;
mysql_close
(
&
con
->
mysql
);
mysql_close
(
&
con
->
mysql
);
if
(
con
->
util_mysql
)
if
(
con
->
util_mysql
)
mysql_close
(
con
->
util_mysql
);
mysql_close
(
con
->
util_mysql
);
...
@@ -2962,10 +2980,12 @@ void safe_connect(MYSQL* mysql, const char *name, const char *host,
...
@@ -2962,10 +2980,12 @@ void safe_connect(MYSQL* mysql, const char *name, const char *host,
Connect failed
Connect failed
Only allow retry if this was an error indicating the server
Only allow retry if this was an error indicating the server
could not be contacted
could not be contacted. Error code differs depending
on protocol/connection type
*/
*/
if
(
mysql_errno
(
mysql
)
==
CR_CONNECTION_ERROR
&&
if
((
mysql_errno
(
mysql
)
==
CR_CONN_HOST_ERROR
||
mysql_errno
(
mysql
)
==
CR_CONNECTION_ERROR
)
&&
failed_attempts
<
opt_max_connect_retries
)
failed_attempts
<
opt_max_connect_retries
)
my_sleep
(
connection_retry_sleep
);
my_sleep
(
connection_retry_sleep
);
else
else
...
@@ -5892,6 +5912,7 @@ int main(int argc, char **argv)
...
@@ -5892,6 +5912,7 @@ int main(int argc, char **argv)
break
;
break
;
case
Q_DISABLE_PS_PROTOCOL
:
case
Q_DISABLE_PS_PROTOCOL
:
ps_protocol_enabled
=
0
;
ps_protocol_enabled
=
0
;
close_statements
();
break
;
break
;
case
Q_ENABLE_PS_PROTOCOL
:
case
Q_ENABLE_PS_PROTOCOL
:
ps_protocol_enabled
=
ps_protocol
;
ps_protocol_enabled
=
ps_protocol
;
...
...
mysql-test/lib/mtr_misc.pl
View file @
0879aeae
...
@@ -134,6 +134,7 @@ sub mtr_exe_maybe_exists (@) {
...
@@ -134,6 +134,7 @@ sub mtr_exe_maybe_exists (@) {
my
@path
=
@_
;
my
@path
=
@_
;
map
{
$_
.=
"
.exe
"}
@path
if
$::glob_win32
;
map
{
$_
.=
"
.exe
"}
@path
if
$::glob_win32
;
map
{
$_
.=
"
.nlm
"}
@path
if
$::glob_netware
;
foreach
my
$path
(
@path
)
foreach
my
$path
(
@path
)
{
{
if
(
$::glob_win32
)
if
(
$::glob_win32
)
...
...
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