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
13de61cc
Commit
13de61cc
authored
Mar 07, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fix for IBM compiler on AIX
parent
ac513586
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
10 deletions
+38
-10
configure.in
configure.in
+0
-1
mysys/my_tempnam.c
mysys/my_tempnam.c
+8
-2
sql-bench/crash-me.sh
sql-bench/crash-me.sh
+30
-7
No files found.
configure.in
View file @
13de61cc
...
...
@@ -14,7 +14,6 @@ SHARED_LIB_VERSION=12:0:0
# Set all version vars based on $VERSION. How do we do this more elegant ?
# Remember that regexps needs to quote [ and ] since this is run through m4
MYSQL_NO_DASH_VERSION
=
`
echo
$VERSION
|
sed
-e
"s|-.*
$|
|"
`
MYSQL_NO_DASH_VERSION
=
`
echo
$VERSION
|
sed
-e
"s|[[a-z]]*-.*
$|
|"
`
MYSQL_BASE_VERSION
=
`
echo
$MYSQL_NO_DASH_VERSION
|
sed
-e
"s|
\.
[[^.]]*
$|
|"
`
F_PART
=
`
echo
$MYSQL_BASE_VERSION
|
sed
-e
"s|
\.
||g"
|
sed
-e
"s|[a-zA-Z]
\+
||"
|sed
-e
"s|^
\(
..
\)
$|
\\
10|"
`
...
...
mysys/my_tempnam.c
View file @
13de61cc
...
...
@@ -115,13 +115,19 @@ my_string my_tempnam(const char *dir, const char *pfx,
old_env
=
(
char
**
)
environ
;
if
(
dir
)
{
/* Don't use TMPDIR if dir is given */
((
char
**
)
environ
)
=
(
char
**
)
temp_env
;
/*
The following strange cast is required because the IBM compiler on AIX
doesn't allow us to cast the value of environ.
The cast of environ is needed as some systems doesn't allow us to
update environ with a char ** pointer. (const mismatch)
*/
(
*
(
char
***
)
&
environ
)
=
(
char
**
)
temp_env
;
temp_env
[
0
]
=
0
;
}
#endif
res
=
tempnam
((
char
*
)
dir
,(
my_string
)
pfx
);
/* Use stand. dir with prefix */
#if !defined(OS2) && !defined(__NETWARE__)
(
(
char
**
)
environ
)
=
(
char
**
)
old_env
;
(
*
(
char
***
)
&
environ
)
=
(
char
**
)
old_env
;
#endif
if
(
!
res
)
DBUG_PRINT
(
"error"
,(
"Got error: %d from tempnam"
,
errno
));
...
...
sql-bench/crash-me.sh
View file @
13de61cc
...
...
@@ -39,7 +39,7 @@
# as such, and clarify ones such as "mediumint" with comments such as
# "3-byte int" or "same as xxx".
$version
=
"1.6
0
"
;
$version
=
"1.6
1
"
;
use DBI
;
use Getopt::Long
;
...
...
@@ -74,7 +74,7 @@ usage() if ($opt_help || $opt_Information);
version
()
&&
exit
(
0
)
if
(
$opt_version
)
;
$opt_suffix
=
'-'
.
$opt_suffix
if
(
length
(
$opt_suffix
)
!=
0
)
;
$opt_config_file
=
"
$pwd
/
$opt_dir
/
$opt_server$opt_suffix
.cfg"
$opt_config_file
=
"
$pwd
/
$opt_dir
/
$opt_server$opt_suffix
.cfg"
if
(
length
(
$opt_config_file
)
==
0
)
;
$log_prefix
=
' ###'
;
# prefix for log lines in result file
$safe_query_log
=
''
;
...
...
@@ -540,7 +540,7 @@ else
" Please start it and try again
\n
"
;
exit
1
;
}
$dbh
=
safe
_connect
()
;
$dbh
=
retry
_connect
()
;
}
...
...
@@ -2880,9 +2880,10 @@ As all used queries are legal according to some SQL standard. any
reasonable SQL server should be able to run this test without any
problems.
All questions is cached in
$opt_dir
/'server_name'.cfg that future runs will use
limits found in previous runs. Remove this file if you want to find the
current limits for your version of the database server.
All questions is cached in
$opt_dir
/'server_name'[-suffix].cfg that
future runs will use limits found in previous runs. Remove this file
if you want to find the current limits for your version of the
database server.
This program uses some table names while testing things. If you have any
tables with the name of 'crash_me' or 'crash_qxxxx' where 'x' is a number,
...
...
@@ -3152,7 +3153,29 @@ sub safe_connect
}
#
# Check if the server is upp and running. If not, ask the user to restart it
# Test connecting a couple of times before giving an error
# This is needed to get the server time to free old connections
# after the connect test
#
sub retry_connect
{
my
(
$dbh
,
$i
)
;
for
(
i
=
0
;
$i
< 10
;
$i
++
)
{
if
((
$dbh
=
DBI->connect
(
$server
->
{
'data_source'
}
,
$opt_user
,
$opt_password
,
{
PrintError
=>
0, AutoCommit
=>
1
})))
{
$dbh
->
{
LongReadLen
}=
16000000
;
# Set max retrieval buffer
return
$dbh
;
}
sleep
(
1
)
;
}
return
safe_connect
()
;
}
#
# Check if the server is up and running. If not, ask the user to restart it
#
sub check_connect
...
...
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