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
c13ff8c2
Commit
c13ff8c2
authored
May 12, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk@192.168.21.1:mysql-5.1-new
into mysql.com:/home/hf/work/mysql-5.1.mrg
parents
d7636c98
77dedc31
Changes
31
Show whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
77 additions
and
28 deletions
+77
-28
CMakeLists.txt
CMakeLists.txt
+0
-0
client/CMakeLists.txt
client/CMakeLists.txt
+0
-0
dbug/CMakeLists.txt
dbug/CMakeLists.txt
+0
-0
extra/CMakeLists.txt
extra/CMakeLists.txt
+0
-0
extra/yassl/CMakeLists.txt
extra/yassl/CMakeLists.txt
+0
-0
extra/yassl/taocrypt/CMakeLists.txt
extra/yassl/taocrypt/CMakeLists.txt
+0
-0
libmysql/CMakeLists.txt
libmysql/CMakeLists.txt
+0
-0
libmysqld/CMakeLists.txt
libmysqld/CMakeLists.txt
+0
-0
libmysqld/examples/CMakeLists.txt
libmysqld/examples/CMakeLists.txt
+0
-0
mysql-test/r/rpl_user_variables.result
mysql-test/r/rpl_user_variables.result
+1
-0
mysql-test/t/rpl_user_variables.test
mysql-test/t/rpl_user_variables.test
+1
-0
mysys/CMakeLists.txt
mysys/CMakeLists.txt
+0
-0
regex/CMakeLists.txt
regex/CMakeLists.txt
+0
-0
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+52
-16
server-tools/instance-manager/CMakeLists.txt
server-tools/instance-manager/CMakeLists.txt
+0
-0
sql/CMakeLists.txt
sql/CMakeLists.txt
+0
-0
sql/item_func.cc
sql/item_func.cc
+10
-0
sql/sql_prepare.cc
sql/sql_prepare.cc
+13
-12
storage/archive/CMakeLists.txt
storage/archive/CMakeLists.txt
+0
-0
storage/bdb/CMakeLists.txt
storage/bdb/CMakeLists.txt
+0
-0
storage/blackhole/CMakeLists.txt
storage/blackhole/CMakeLists.txt
+0
-0
storage/csv/CMakeLists.txt
storage/csv/CMakeLists.txt
+0
-0
storage/example/CMakeLists.txt
storage/example/CMakeLists.txt
+0
-0
storage/heap/CMakeLists.txt
storage/heap/CMakeLists.txt
+0
-0
storage/innobase/CMakeLists.txt
storage/innobase/CMakeLists.txt
+0
-0
storage/myisam/CMakeLists.txt
storage/myisam/CMakeLists.txt
+0
-0
storage/myisammrg/CMakeLists.txt
storage/myisammrg/CMakeLists.txt
+0
-0
strings/CMakeLists.txt
strings/CMakeLists.txt
+0
-0
tests/CMakeLists.txt
tests/CMakeLists.txt
+0
-0
vio/CMakeLists.txt
vio/CMakeLists.txt
+0
-0
zlib/CMakeLists.txt
zlib/CMakeLists.txt
+0
-0
No files found.
cmakel
ists.txt
→
CMakeL
ists.txt
View file @
c13ff8c2
File moved
client/
cmakel
ists.txt
→
client/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
dbug/
cmakel
ists.txt
→
dbug/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
extra/
cmakel
ists.txt
→
extra/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
extra/yassl/
cmakel
ists.txt
→
extra/yassl/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
extra/yassl/taocrypt/
cmakel
ists.txt
→
extra/yassl/taocrypt/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
libmysql/
cmakel
ists.txt
→
libmysql/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
libmysqld/
cmakel
ists.txt
→
libmysqld/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
libmysqld/examples/
cmakel
ists.txt
→
libmysqld/examples/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
mysql-test/r/rpl_user_variables.result
View file @
c13ff8c2
...
...
@@ -78,5 +78,6 @@ abcn1
abcn1n2
abc\def
This is a test
insert into t1 select * FROM (select @var1 union select @var2) AS t2;
drop table t1;
stop slave;
mysql-test/t/rpl_user_variables.test
View file @
c13ff8c2
...
...
@@ -55,6 +55,7 @@ SELECT * FROM t1 ORDER BY n;
sync_slave_with_master
;
SELECT
*
FROM
t1
ORDER
BY
n
;
connection
master
;
insert
into
t1
select
*
FROM
(
select
@
var1
union
select
@
var2
)
AS
t2
;
drop
table
t1
;
sync_slave_with_master
;
stop
slave
;
mysys/
cmakel
ists.txt
→
mysys/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
regex/
cmakel
ists.txt
→
regex/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
scripts/mysqld_safe.sh
View file @
c13ff8c2
...
...
@@ -31,7 +31,6 @@ Usage: $0 [OPTIONS]
--defaults-file=FILE Use the specified defaults file
--defaults-extra-file=FILE Also use defaults from the specified file
--ledir=DIRECTORY Look for mysqld in the specified directory
--log-error=FILE Log errors to the specified log file
--open-files-limit=LIMIT Limit the number of open files
--core-file-size=LIMIT Limit core files to the specified size
--timezone=TZ Set the system timezone
...
...
@@ -46,6 +45,11 @@ EOF
exit
1
}
shell_quote_string
()
{
# This sed command makes sure that any special chars are quoted,
# so the arg gets passed exactly to the server.
echo
"
$1
"
|
sed
-e
's,\([^a-zA-Z0-9/_.=-]\),\\\1,g'
}
parse_arguments
()
{
# We only need to pass arguments through to the server if we don't
...
...
@@ -69,14 +73,14 @@ parse_arguments() {
--pid-file
=
*
)
pid_file
=
`
echo
"
$arg
"
|
sed
-e
"s;--pid-file=;;"
`
;;
--user
=
*
)
user
=
`
echo
"
$arg
"
|
sed
-e
"s;--[^=]*=;;"
`
;
SET_USER
=
1
;;
# these
two
might have been set in a [mysqld_safe] section of my.cnf
# these might have been set in a [mysqld_safe] section of my.cnf
# they are added to mysqld command line to override settings from my.cnf
--log-error
=
*
)
err_log
=
`
echo
"
$arg
"
|
sed
-e
"s;--log-error=;;"
`
;;
--socket
=
*
)
mysql_unix_port
=
`
echo
"
$arg
"
|
sed
-e
"s;--socket=;;"
`
;;
--port
=
*
)
mysql_tcp_port
=
`
echo
"
$arg
"
|
sed
-e
"s;--port=;;"
`
;;
# mysqld_safe-specific options - must be set in my.cnf ([mysqld_safe])!
--ledir
=
*
)
ledir
=
`
echo
"
$arg
"
|
sed
-e
"s;--ledir=;;"
`
;;
--log-error
=
*
)
err_log
=
`
echo
"
$arg
"
|
sed
-e
"s;--log-error=;;"
`
;;
--open-files-limit
=
*
)
open_files
=
`
echo
"
$arg
"
|
sed
-e
"s;--open-files-limit=;;"
`
;;
--core-file-size
=
*
)
core_file_size
=
`
echo
"
$arg
"
|
sed
-e
"s;--core-file-size=;;"
`
;;
--timezone
=
*
)
TZ
=
`
echo
"
$arg
"
|
sed
-e
"s;--timezone=;;"
`
;
export
TZ
;
;;
...
...
@@ -97,9 +101,7 @@ parse_arguments() {
*
)
if
test
-n
"
$pick_args
"
then
# This sed command makes sure that any special chars are quoted,
# so the arg gets passed exactly to the server.
args
=
"
$args
"
`
echo
"
$arg
"
|
sed
-e
's,\([^a-zA-Z0-9_.-]\),\\\\\1,g'
`
append_arg_to_args
"
$arg
"
fi
;;
esac
...
...
@@ -194,6 +196,10 @@ else
print_defaults
=
"my_print_defaults"
fi
append_arg_to_args
()
{
args
=
"
$args
"
`
shell_quote_string
"
$1
"
`
}
args
=
SET_USER
=
2
parse_arguments
`
$print_defaults
$defaults
--loose-verbose
mysqld server
`
...
...
@@ -239,15 +245,39 @@ else
*
)
pid_file
=
"
$DATADIR
/
$pid_file
"
;;
esac
fi
test
-z
"
$err_log
"
&&
err_log
=
$DATADIR
/
`
@HOSTNAME@
`
.err
append_arg_to_args
"--pid-file=
$pid_file
"
if
[
-n
"
$err_log
"
]
then
# mysqld adds ".err" if there is no extension on the --log-err
# argument; must match that here, or mysqld_safe will write to a
# different log file than mysqld
# mysqld does not add ".err" to "--log-error=foo."; it considers a
# trailing "." as an extension
if
expr
"
$err_log
"
:
'.*\.[^/]*$'
>
/dev/null
then
:
else
err_log
=
"
$err_log
"
.err
fi
case
"
$err_log
"
in
/
*
)
;;
*
)
err_log
=
"
$DATADIR
/
$err_log
"
;;
esac
else
err_log
=
$DATADIR
/
`
@HOSTNAME@
`
.err
fi
append_arg_to_args
"--log-error=
$err_log
"
if
test
-n
"
$mysql_unix_port
"
then
a
rgs
=
"--socket=
$mysql_unix_port
$args
"
a
ppend_arg_to_args
"--socket=
$mysql_unix_port
"
fi
if
test
-n
"
$mysql_tcp_port
"
then
a
rgs
=
"--port=
$mysql_tcp_port
$args
"
a
ppend_arg_to_args
"--port=
$mysql_tcp_port
"
fi
if
test
$niceness
-eq
0
...
...
@@ -314,7 +344,7 @@ then
if
test
-n
"
$open_files
"
then
ulimit
-n
$open_files
a
rgs
=
"--open-files-limit=
$open_files
$arg
s
"
a
ppend_arg_to_args
"--open-files-limit=
$open_file
s
"
fi
if
test
-n
"
$core_file_size
"
then
...
...
@@ -372,12 +402,18 @@ echo "`date +'%y%m%d %H:%M:%S mysqld started'`" >> $err_log
while
true
do
rm
-f
$safe_mysql_unix_port
$pid_file
# Some extra safety
if
test
-z
"
$args
"
then
$NOHUP_NICENESS
$ledir
/
$MYSQLD
$defaults
--basedir
=
$MY_BASEDIR_VERSION
--datadir
=
$DATADIR
$USER_OPTION
--pid-file
=
$pid_file
@MYSQLD_DEFAULT_SWITCHES@
>>
$err_log
2>&1
else
eval
"
$NOHUP_NICENESS
$ledir
/
$MYSQLD
$defaults
--basedir=
$MY_BASEDIR_VERSION
--datadir=
$DATADIR
$USER_OPTION
--pid-file=
$pid_file
@MYSQLD_DEFAULT_SWITCHES@
$args
>>
$err_log
2>&1"
fi
cmd
=
"
$NOHUP_NICENESS
"
for
i
in
"
$ledir
/
$MYSQLD
"
"
$defaults
"
"--basedir=
$MY_BASEDIR_VERSION
"
\
"--datadir=
$DATADIR
"
"
$USER_OPTION
"
do
cmd
=
"
$cmd
"
`
shell_quote_string
"
$i
"
`
done
cmd
=
"
$cmd
$args
>> "
`
shell_quote_string
"
$err_log
"
`
" 2>&1"
#echo "Running mysqld: [$cmd]"
eval
"
$cmd
"
if
test
!
-f
$pid_file
# This is removed if normal shutdown
then
echo
"STOPPING server from pid file
$pid_file
"
...
...
server-tools/instance-manager/
cmakel
ists.txt
→
server-tools/instance-manager/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
sql/
cmakel
ists.txt
→
sql/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
sql/item_func.cc
View file @
c13ff8c2
...
...
@@ -3948,14 +3948,24 @@ int get_var_with_binlog(THD *thd, enum_sql_command sql_command,
sql_set_variables(), we could instead manually call check() and update();
this would save memory and time; but calling sql_set_variables() makes
one unique place to maintain (sql_set_variables()).
Manipulation with lex is necessary since free_underlaid_joins
is going to release memory belonging to the main query.
*/
List
<
set_var_base
>
tmp_var_list
;
LEX
*
sav_lex
=
thd
->
lex
,
lex_tmp
;
thd
->
lex
=
&
lex_tmp
;
lex_start
(
thd
,
NULL
,
0
);
tmp_var_list
.
push_back
(
new
set_var_user
(
new
Item_func_set_user_var
(
name
,
new
Item_null
())));
/* Create the variable */
if
(
sql_set_variables
(
thd
,
&
tmp_var_list
))
{
thd
->
lex
=
sav_lex
;
goto
err
;
}
thd
->
lex
=
sav_lex
;
if
(
!
(
var_entry
=
get_variable
(
&
thd
->
user_vars
,
name
,
0
)))
goto
err
;
}
...
...
sql/sql_prepare.cc
View file @
c13ff8c2
...
...
@@ -2087,7 +2087,8 @@ void reinit_stmt_before_use(THD *thd, LEX *lex)
sl
->
exclude_from_table_unique_test
=
FALSE
;
/*
Copy WHERE, HAVING clause pointers to avoid damaging them by optimisation
Copy WHERE, HAVING clause pointers to avoid damaging them
by optimisation
*/
if
(
sl
->
prep_where
)
{
...
...
storage/archive/
cmakel
ists.txt
→
storage/archive/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
storage/bdb/
cmakel
ists.txt
→
storage/bdb/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
storage/blackhole/
cmakel
ists.txt
→
storage/blackhole/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
storage/csv/
cmakel
ists.txt
→
storage/csv/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
storage/example/
cmakel
ists.txt
→
storage/example/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
storage/heap/
cmakel
ists.txt
→
storage/heap/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
storage/innobase/
cmakel
ists.txt
→
storage/innobase/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
storage/myisam/
cmakel
ists.txt
→
storage/myisam/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
storage/myisammrg/
cmakel
ists.txt
→
storage/myisammrg/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
strings/
cmakel
ists.txt
→
strings/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
tests/
cmakel
ists.txt
→
tests/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
vio/
cmakel
ists.txt
→
vio/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
zlib/
cmakel
ists.txt
→
zlib/
CMakeL
ists.txt
View file @
c13ff8c2
File moved
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