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
6f7e87ce
Commit
6f7e87ce
authored
Feb 09, 2011
by
Mats Kindahl
Browse files
Options
Browse Files
Download
Plain Diff
Merging with mysql-5.5
parents
7c8d5d9b
73b02e98
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
72 additions
and
25 deletions
+72
-25
client/readline.cc
client/readline.cc
+2
-0
mysql-test/collections/default.release
mysql-test/collections/default.release
+11
-0
mysql-test/collections/test-bt
mysql-test/collections/test-bt
+0
-10
mysql-test/collections/test-bt-debug
mysql-test/collections/test-bt-debug
+0
-1
mysql-test/collections/test-bt-debug-fast
mysql-test/collections/test-bt-debug-fast
+0
-0
mysql-test/collections/test-bt-fast
mysql-test/collections/test-bt-fast
+0
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-1
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+58
-11
No files found.
client/readline.cc
View file @
6f7e87ce
...
...
@@ -33,10 +33,12 @@ LINE_BUFFER *batch_readline_init(ulong max_size,FILE *file)
LINE_BUFFER
*
line_buff
;
MY_STAT
input_file_stat
;
#ifndef __WIN__
if
(
my_fstat
(
fileno
(
file
),
&
input_file_stat
,
MYF
(
MY_WME
))
||
MY_S_ISDIR
(
input_file_stat
.
st_mode
)
||
MY_S_ISBLK
(
input_file_stat
.
st_mode
))
return
0
;
#endif
if
(
!
(
line_buff
=
(
LINE_BUFFER
*
)
my_malloc
(
sizeof
(
*
line_buff
),
MYF
(
MY_WME
|
MY_ZEROFILL
))))
...
...
mysql-test/collections/default.release
0 → 100644
View file @
6f7e87ce
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=debug --vardir=var-debug --skip-ndbcluster --skip-rpl --report-features --debug-server
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --skip-ndbcluster --report-features
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=ps --vardir=var-ps --skip-ndbcluster --ps-protocol
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=funcs1+ps --vardir=var-funcs_1_ps --suite=funcs_1 --ps-protocol
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=funcs2 --vardir=var-funcs2 --suite=funcs_2
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=partitions --vardir=var-parts --suite=parts
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=stress --vardir=var-stress --suite=stress
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=jp --vardir=var-jp --suite=jp
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=embedded --vardir=var-embedded --embedded-server --skip-rpl --skip-ndbcluster
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist --vardir=var-nist --suite=nist
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist+ps --vardir=var-nist_ps --suite=nist --ps-protocol
mysql-test/collections/test-bt
deleted
100644 → 0
View file @
7c8d5d9b
perl mysql-test-run.pl --force --timer --parallel=auto --comment=normal --skip-ndbcluster --report-features --experimental=collections/default.experimental
perl mysql-test-run.pl --force --timer --parallel=auto --comment=ps --skip-ndbcluster --ps-protocol --experimental=collections/default.experimental
perl mysql-test-run.pl --force --timer --parallel=auto --comment=funcs1+ps --suite=funcs_1 --ps-protocol --experimental=collections/default.experimental
perl mysql-test-run.pl --force --timer --parallel=auto --comment=funcs2 --suite=funcs_2 --experimental=collections/default.experimental
perl mysql-test-run.pl --force --timer --parallel=auto --comment=partitions --suite=parts --experimental=collections/default.experimental
perl mysql-test-run.pl --force --timer --parallel=auto --comment=stress --suite=stress --experimental=collections/default.experimental
perl mysql-test-run.pl --force --timer --parallel=auto --comment=jp --suite=jp --experimental=collections/default.experimental
perl mysql-test-run.pl --force --timer --parallel=auto --comment=embedded --embedded-server --skip-rpl --skip-ndbcluster --experimental=collections/default.experimental
perl mysql-test-run.pl --force --timer --parallel=auto --comment=nist --suite=nist --experimental=collections/default.experimental
perl mysql-test-run.pl --force --timer --parallel=auto --comment=nist+ps --suite=nist --ps-protocol --experimental=collections/default.experimental
mysql-test/collections/test-bt-debug
deleted
100644 → 0
View file @
7c8d5d9b
perl mysql-test-run.pl --force --timer --parallel=auto --comment=debug --skip-ndbcluster --skip-rpl --report-features --experimental=collections/default.experimental
mysql-test/collections/test-bt-debug-fast
deleted
100644 → 0
View file @
7c8d5d9b
mysql-test/collections/test-bt-fast
deleted
100644 → 0
View file @
7c8d5d9b
perl mysql-test-run.pl --force --timer --parallel=auto --comment=ps --skip-ndbcluster --ps-protocol --report-features --experimental=collections/default.experimental
perl mysql-test-run.pl --force --timer --parallel=auto --comment=stress --suite=stress --experimental=collections/default.experimental
mysql-test/mysql-test-run.pl
View file @
6f7e87ce
...
...
@@ -2022,7 +2022,7 @@ sub read_plugin_defs($)
# Need to check if we will be running mysqld-debug
if
(
$opt_debug_server
)
{
$running_debug
=
1
if
find_mysqld
(
$basedir
)
=~
/
-debug$
/
;
$running_debug
=
1
if
find_mysqld
(
$basedir
)
=~
/
mysqld-debug
/
;
}
while
(
<
PLUGDEF
>
)
{
...
...
support-files/mysql.spec.sh
View file @
6f7e87ce
# Copyright (c) 2000, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2000, 201
1
, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -523,10 +523,27 @@ rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
##############################################################################
%pre
-n
MySQL-server%
{
product_suffix
}
# This is the code running at the beginning of a RPM upgrade action,
# before replacing the old files with the new ones.
# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
mysql_datadir
=
%
{
mysqldatadir
}
# There are users who deviate from the default file system layout.
# Check local settings to support them.
if
[
-x
%
{
_bindir
}
/my_print_defaults
]
then
mysql_datadir
=
`
%
{
_bindir
}
/my_print_defaults server mysqld |
grep
'^--datadir='
|
sed
-n
's/--datadir=//p'
`
PID_FILE_PATT
=
`
%
{
_bindir
}
/my_print_defaults server mysqld |
grep
'^--pid-file='
|
sed
-n
's/--pid-file=//p'
`
fi
if
[
-z
"
$mysql_datadir
"
]
then
mysql_datadir
=
%
{
mysqldatadir
}
fi
if
[
-z
"
$PID_FILE_PATT
"
]
then
PID_FILE_PATT
=
"
$mysql_datadir
/*.pid"
fi
# Check if we can safely upgrade. An upgrade is only safe if it's from one
# of our RPMs in the same version family.
...
...
@@ -601,7 +618,7 @@ fi
# We assume that if there is exactly one ".pid" file,
# it contains the valid PID of a running MySQL server.
NR_PID_FILES
=
`
ls
$
mysql_datadir
/
*
.pid
2>/dev/null |
wc
-l
`
NR_PID_FILES
=
`
ls
$
PID_FILE_PATT
2>/dev/null |
wc
-l
`
case
$NR_PID_FILES
in
0
)
SERVER_TO_START
=
''
;;
# No "*.pid" file == no running server
1
)
SERVER_TO_START
=
'true'
;;
...
...
@@ -623,8 +640,8 @@ if [ -f $STATUS_FILE ]; then
echo
"before repeating the MySQL upgrade."
exit
1
elif
[
-n
"
$SEVERAL_PID_FILES
"
]
;
then
echo
"You
r MySQL directory '
$mysql_datadir
' has
more than one PID file:"
ls
-ld
$
mysql_datadir
/
*
.pid
echo
"You
have
more than one PID file:"
ls
-ld
$
PID_FILE_PATT
echo
"Please check which one (if any) corresponds to a running server"
echo
"and delete all others before repeating the MySQL upgrade."
exit
1
...
...
@@ -649,17 +666,17 @@ if [ -d $mysql_datadir ] ; then
if
[
-n
"
$SERVER_TO_START
"
]
;
then
# There is only one PID file, race possibility ignored
echo
"PID file:"
>>
$STATUS_FILE
ls
-l
$
mysql_datadir
/
*
.pid
>>
$STATUS_FILE
cat
$
mysql_datadir
/
*
.pid
>>
$STATUS_FILE
ls
-l
$
PID_FILE_PATT
>>
$STATUS_FILE
cat
$
PID_FILE_PATT
>>
$STATUS_FILE
echo
>>
$STATUS_FILE
echo
"Server process:"
>>
$STATUS_FILE
ps
-fp
`
cat
$
mysql_datadir
/
*
.pid
`
>>
$STATUS_FILE
ps
-fp
`
cat
$
PID_FILE_PATT
`
>>
$STATUS_FILE
echo
>>
$STATUS_FILE
echo
"SERVER_TO_START=
$SERVER_TO_START
"
>>
$STATUS_FILE
else
# Take a note we checked it ...
echo
"PID file:"
>>
$STATUS_FILE
ls
-l
$
mysql_datadir
/
*
.pid
>>
$STATUS_FILE
2>&1
ls
-l
$
PID_FILE_PATT
>>
$STATUS_FILE
2>&1
fi
fi
...
...
@@ -674,10 +691,22 @@ if [ -x %{_sysconfdir}/init.d/mysql ] ; then
fi
%post
-n
MySQL-server%
{
product_suffix
}
# This is the code running at the end of a RPM install or upgrade action,
# after the (new) files have been written.
# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
mysql_datadir
=
%
{
mysqldatadir
}
# There are users who deviate from the default file system layout.
# Check local settings to support them.
if
[
-x
%
{
_bindir
}
/my_print_defaults
]
then
mysql_datadir
=
`
%
{
_bindir
}
/my_print_defaults server mysqld |
grep
'^--datadir='
|
sed
-n
's/--datadir=//p'
`
fi
if
[
-z
"
$mysql_datadir
"
]
then
mysql_datadir
=
%
{
mysqldatadir
}
fi
NEW_VERSION
=
%
{
mysql_version
}
-%
{
release
}
STATUS_FILE
=
$mysql_datadir
/RPM_UPGRADE_MARKER
...
...
@@ -855,7 +884,17 @@ fi
# http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch10s02.html
# For all details of this code, see the "pre" and "post" sections.
mysql_datadir
=
%
{
mysqldatadir
}
# There are users who deviate from the default file system layout.
# Check local settings to support them.
if
[
-x
%
{
_bindir
}
/my_print_defaults
]
then
mysql_datadir
=
`
%
{
_bindir
}
/my_print_defaults server mysqld |
grep
'^--datadir='
|
sed
-n
's/--datadir=//p'
`
fi
if
[
-z
"
$mysql_datadir
"
]
then
mysql_datadir
=
%
{
mysqldatadir
}
fi
NEW_VERSION
=
%
{
mysql_version
}
-%
{
release
}
STATUS_FILE
=
$mysql_datadir
/RPM_UPGRADE_MARKER-LAST
# Note the difference!
STATUS_HISTORY
=
$mysql_datadir
/RPM_UPGRADE_HISTORY
...
...
@@ -1085,6 +1124,14 @@ echo "=====" >> $STATUS_HISTORY
# merging BK trees)
##############################################################################
%changelog
*
Thu Feb 09 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
- Fix bug#56581: If an installation deviates from the default file locations
(
"datadir"
and
"pid-file"
)
, the mechanism to detect a running server
(
on upgrade
)
should still work, and use these locations.
The problem was that the fix
for
bug#27072 did not check
for
local
settings.
*
Tue Nov 23 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
- EXCEPTIONS-CLIENT has been deleted, remove it from here too
...
...
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