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
e3796c92
Commit
e3796c92
authored
Feb 26, 2006
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After merge fixes
parent
1e2e9e28
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
56 additions
and
44 deletions
+56
-44
.bzrignore
.bzrignore
+2
-0
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+2
-2
mysql-test/r/ctype_cp932_notembedded.result
mysql-test/r/ctype_cp932_notembedded.result
+4
-4
mysql-test/r/func_system.result
mysql-test/r/func_system.result
+2
-2
mysql-test/r/partition_mgm_err.result
mysql-test/r/partition_mgm_err.result
+0
-2
mysql-test/r/partition_mgm_err2.result
mysql-test/r/partition_mgm_err2.result
+2
-0
mysql-test/r/query_cache.result
mysql-test/r/query_cache.result
+1
-1
mysql-test/t/ctype_cp932_notembedded.test
mysql-test/t/ctype_cp932_notembedded.test
+1
-1
mysql-test/t/func_system.test
mysql-test/t/func_system.test
+1
-1
mysql-test/t/partition_mgm_err.test
mysql-test/t/partition_mgm_err.test
+0
-18
mysql-test/t/partition_mgm_err2.test
mysql-test/t/partition_mgm_err2.test
+25
-0
mysql-test/t/query_cache.test
mysql-test/t/query_cache.test
+1
-1
mysys/my_symlink2.c
mysys/my_symlink2.c
+2
-0
sql/event.cc
sql/event.cc
+0
-1
sql/event_executor.cc
sql/event_executor.cc
+11
-9
sql/mysqld.cc
sql/mysqld.cc
+2
-2
No files found.
.bzrignore
View file @
e3796c92
...
...
@@ -1614,3 +1614,5 @@ vio/viotest-sslconnect.cpp
vio/viotest.cpp
zlib/*.ds?
zlib/*.vcproj
libmysqld/partition_info.cc
storage/ndb/src/common/util/testBitmask.cpp
mysql-test/mysql-test-run.sh
View file @
e3796c92
...
...
@@ -217,8 +217,8 @@ MY_LOG_DIR="$MYSQL_TEST_DIR/var/log"
#
# Set LD_LIBRARY_PATH if we are using shared libraries
#
LD_LIBRARY_PATH
=
"
$BASEDIR
/lib:
$BASEDIR
/libmysql/.libs:
$BASEDIR
/zlib/.libs:
$LD_LIBRARY_PATH
"
DYLD_LIBRARY_PATH
=
"
$BASEDIR
/lib:
$BASEDIR
/libmysql/.libs:
$BASEDIR
/zlib/.libs:
$DYLD_LIBRARY_PATH
"
LD_LIBRARY_PATH
=
"
$BASEDIR
/lib:
$BASEDIR
/libmysql/.libs:
$BASEDIR
/
libmysql_r/.libs:
$BASEDIR
/
zlib/.libs:
$LD_LIBRARY_PATH
"
DYLD_LIBRARY_PATH
=
"
$BASEDIR
/lib:
$BASEDIR
/libmysql/.libs:
$BASEDIR
/
libmysql_r/.libs:
$BASEDIR
/
zlib/.libs:
$DYLD_LIBRARY_PATH
"
export
LD_LIBRARY_PATH DYLD_LIBRARY_PATH
#
...
...
mysql-test/r/ctype_cp932_notembedded.result
View file @
e3796c92
...
...
@@ -6,11 +6,11 @@ CREATE TABLE t1(f1 blob);
PREPARE stmt1 FROM 'INSERT INTO t1 VALUES(?)';
SET @var1= x'8300';
EXECUTE stmt1 USING @var1;
SHOW BINLOG EVENTS FROM
98
;
SHOW BINLOG EVENTS FROM
102
;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001
98 Query 1 185
use `test`; CREATE TABLE t1(f1 blob)
master-bin.000001 18
5 User var 1 224
@`var1`=_binary 0x8300 COLLATE binary
master-bin.000001 22
4 Query 1 317
use `test`; INSERT INTO t1 VALUES(@'var1')
master-bin.000001
102 Query 1 189
use `test`; CREATE TABLE t1(f1 blob)
master-bin.000001 18
9 User var 1 228
@`var1`=_binary 0x8300 COLLATE binary
master-bin.000001 22
8 Query 1 321
use `test`; INSERT INTO t1 VALUES(@'var1')
SELECT HEX(f1) FROM t1;
HEX(f1)
8300
...
...
mysql-test/r/func_system.result
View file @
e3796c92
...
...
@@ -42,13 +42,13 @@ id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select sql_no_cache database() AS `database()`,user() AS `user()`
create table t1 (version char(
4
0)) select database(), user(), version() as 'version';
create table t1 (version char(
6
0)) select database(), user(), version() as 'version';
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`database()` varchar(34) character set utf8 default NULL,
`user()` varchar(77) character set utf8 NOT NULL default '',
`version` char(
4
0) default NULL
`version` char(
6
0) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
select charset(charset(_utf8'a')), charset(collation(_utf8'a'));
...
...
mysql-test/r/partition_mgm_err.result
View file @
e3796c92
...
...
@@ -112,8 +112,6 @@ ALTER TABLE t1 DROP PARTITION x1;
ALTER TABLE t1 DROP PARTITION x0;
ERROR HY000: Cannot remove all partitions, use DROP TABLE instead
DROP TABLE t1;
INSERT INTO t1 VALUES (15);
DROP TABLE t1;
CREATE TABLE t1 ( id INT NOT NULL,
fname VARCHAR(50) NOT NULL,
lname VARCHAR(50) NOT NULL,
...
...
mysql-test/r/partition_mgm_err2.result
0 → 100644
View file @
e3796c92
INSERT INTO t1 VALUES (15);
DROP TABLE t1;
mysql-test/r/query_cache.result
View file @
e3796c92
...
...
@@ -3,7 +3,7 @@ flush query cache;
flush query cache;
reset query cache;
flush status;
drop table if exists t1,t2,t3,t4,t11,t21;
drop table if exists t1,t2,t3,t4,t11,t21
,t1_1,t1_2,t9,t9_1,t9_2
;
drop database if exists mysqltest;
drop table if exists ```a`;
drop view if exists v1;
...
...
mysql-test/t/ctype_cp932_notembedded.test
View file @
e3796c92
...
...
@@ -26,7 +26,7 @@ SET @var1= x'8300';
# code (and I have used it to test the fix) until there is some way to
# exercise this code from mysql-test-run.
EXECUTE
stmt1
USING
@
var1
;
SHOW
BINLOG
EVENTS
FROM
98
;
SHOW
BINLOG
EVENTS
FROM
102
;
SELECT
HEX
(
f1
)
FROM
t1
;
DROP
table
t1
;
# end test for bug#11338
mysql-test/t/func_system.test
View file @
e3796c92
...
...
@@ -19,7 +19,7 @@ select version()>=_latin1"3.23.29";
select
charset
(
version
());
explain
extended
select
database
(),
user
();
create
table
t1
(
version
char
(
4
0
))
select
database
(),
user
(),
version
()
as
'version'
;
create
table
t1
(
version
char
(
6
0
))
select
database
(),
user
(),
version
()
as
'version'
;
show
create
table
t1
;
drop
table
t1
;
...
...
mysql-test/t/partition_mgm_err.test
View file @
e3796c92
...
...
@@ -168,24 +168,6 @@ ALTER TABLE t1 DROP PARTITION x0;
DROP
TABLE
t1
;
#
# BUG: 14354 Partitions: data directory clause fails
#
--
system
rm
-
rf
$MYSQLTEST_VARDIR
/
tmp
/
bug14354
--
system
mkdir
$MYSQLTEST_VARDIR
/
tmp
/
bug14354
disable_query_log
;
eval
CREATE
TABLE
t1
(
id
int
)
PARTITION
BY
RANGE
(
id
)
(
PARTITION
p1
VALUES
LESS
THAN
(
20
)
ENGINE
=
myiasm
DATA
DIRECTORY
=
"
$MYSQLTEST_VARDIR
/tmp/bug14354"
INDEX
DIRECTORY
=
"
$MYSQLTEST_VARDIR
/tmp/bug14354"
);
enable_query_log
;
INSERT
INTO
t1
VALUES
(
15
);
--
system
test
-
f
$MYSQLTEST_VARDIR
/
tmp
/
bug14354
/
t1
#P#p1.MYD
--
system
test
-
f
$MYSQLTEST_VARDIR
/
tmp
/
bug14354
/
t1
#P#p1.MYI
DROP
TABLE
t1
;
--
system
rm
-
rf
$MYSQLTEST_VARDIR
/
tmp
/
bug14354
#
# Bug# 16534 - Trying to add multiple partitions crashes server
#
...
...
mysql-test/t/partition_mgm_err2.test
0 → 100644
View file @
e3796c92
#
# Test of partitions that require symlinks
#
--
require
r
/
have_symlink
.
require
disable_query_log
;
show
variables
like
"have_symlink"
;
enable_query_log
;
#
# BUG: 14354 Partitions: data directory clause fails
#
--
system
rm
-
rf
$MYSQLTEST_VARDIR
/
tmp
/
bug14354
--
system
mkdir
$MYSQLTEST_VARDIR
/
tmp
/
bug14354
disable_query_log
;
eval
CREATE
TABLE
t1
(
id
int
)
PARTITION
BY
RANGE
(
id
)
(
PARTITION
p1
VALUES
LESS
THAN
(
20
)
ENGINE
=
myiasm
DATA
DIRECTORY
=
"
$MYSQLTEST_VARDIR
/tmp/bug14354"
INDEX
DIRECTORY
=
"
$MYSQLTEST_VARDIR
/tmp/bug14354"
);
enable_query_log
;
INSERT
INTO
t1
VALUES
(
15
);
--
system
test
-
f
$MYSQLTEST_VARDIR
/
tmp
/
bug14354
/
t1
#P#p1.MYD
--
system
test
-
f
$MYSQLTEST_VARDIR
/
tmp
/
bug14354
/
t1
#P#p1.MYI
DROP
TABLE
t1
;
--
system
rm
-
rf
$MYSQLTEST_VARDIR
/
tmp
/
bug14354
mysql-test/t/query_cache.test
View file @
e3796c92
...
...
@@ -12,7 +12,7 @@ flush query cache; # This crashed in some versions
reset
query
cache
;
flush
status
;
--
disable_warnings
drop
table
if
exists
t1
,
t2
,
t3
,
t4
,
t11
,
t21
;
drop
table
if
exists
t1
,
t2
,
t3
,
t4
,
t11
,
t21
,
t1_1
,
t1_2
,
t9
,
t9_1
,
t9_2
;
drop
database
if
exists
mysqltest
;
# Fix possible left overs from other tests
...
...
mysys/my_symlink2.c
View file @
e3796c92
...
...
@@ -34,9 +34,11 @@ File my_create_with_symlink(const char *linkname, const char *filename,
int
create_link
;
char
abs_linkname
[
FN_REFLEN
];
DBUG_ENTER
(
"my_create_with_symlink"
);
DBUG_PRINT
(
"enter"
,
(
"linkname: %s filename: %s"
,
linkname
,
filename
));
if
(
my_disable_symlinks
)
{
DBUG_PRINT
(
"info"
,
(
"Symlinks disabled"
));
/* Create only the file, not the link and file */
create_link
=
0
;
if
(
linkname
)
...
...
sql/event.cc
View file @
e3796c92
...
...
@@ -1465,7 +1465,6 @@ evex_drop_db_events(THD *thd, char *db)
DBUG_ENTER
(
"evex_drop_db_events"
);
DBUG_PRINT
(
"info"
,(
"dropping events from %s"
,
db
));
VOID
(
pthread_mutex_lock
(
&
LOCK_event_arrays
));
if
((
ret
=
evex_open_event_table
(
thd
,
TL_WRITE
,
&
table
)))
...
...
sql/event_executor.cc
View file @
e3796c92
...
...
@@ -48,7 +48,7 @@ bool evex_is_running= false;
ulonglong
evex_main_thread_id
=
0
;
ulong
opt_event_executor
;
my_bool
event_executor_running_global_var
;
static
my_bool
evex_mutexes_initted
=
false
;
static
my_bool
evex_mutexes_initted
=
FALSE
;
static
uint
workers_count
;
static
int
...
...
@@ -107,7 +107,7 @@ evex_init_mutexes()
if
(
evex_mutexes_initted
)
return
;
evex_mutexes_initted
=
true
;
evex_mutexes_initted
=
TRUE
;
pthread_mutex_init
(
&
LOCK_event_arrays
,
MY_MUTEX_INIT_FAST
);
pthread_mutex_init
(
&
LOCK_workers_count
,
MY_MUTEX_INIT_FAST
);
pthread_mutex_init
(
&
LOCK_evex_running
,
MY_MUTEX_INIT_FAST
);
...
...
@@ -191,7 +191,6 @@ int
init_events
()
{
pthread_t
th
;
DBUG_ENTER
(
"init_events"
);
DBUG_PRINT
(
"info"
,(
"Starting events main thread"
));
...
...
@@ -234,13 +233,16 @@ shutdown_events()
{
DBUG_ENTER
(
"shutdown_events"
);
VOID
(
pthread_mutex_lock
(
&
LOCK_evex_running
));
VOID
(
pthread_mutex_unlock
(
&
LOCK_evex_running
));
if
(
evex_mutexes_initted
)
{
evex_mutexes_initted
=
FALSE
;
VOID
(
pthread_mutex_lock
(
&
LOCK_evex_running
));
VOID
(
pthread_mutex_unlock
(
&
LOCK_evex_running
));
pthread_mutex_destroy
(
&
LOCK_event_arrays
);
pthread_mutex_destroy
(
&
LOCK_workers_count
);
pthread_mutex_destroy
(
&
LOCK_evex_running
);
pthread_mutex_destroy
(
&
LOCK_event_arrays
);
pthread_mutex_destroy
(
&
LOCK_workers_count
);
pthread_mutex_destroy
(
&
LOCK_evex_running
);
}
DBUG_VOID_RETURN
;
}
...
...
sql/mysqld.cc
View file @
e3796c92
...
...
@@ -3070,6 +3070,8 @@ static int init_server_components()
#ifdef HAVE_REPLICATION
init_slave_list
();
#endif
init_events
();
/* Setup logs */
/* enable old-fashioned error log */
...
...
@@ -3698,8 +3700,6 @@ we force server id to 2, but this MySQL server will not act as a slave.");
}
}
init_events
();
create_shutdown_thread
();
create_maintenance_thread
();
...
...
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