Skip to content

Commit 9c820e6

Browse files
author
Alexander Nozdrin
committed
Auto-merge from mysql-next-mr.
2 parents e64d6d5 + bed80b9 commit 9c820e6

File tree

285 files changed

+27084
-623
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

285 files changed

+27084
-623
lines changed

BUILD/compile-dist

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
#!/bin/sh
2+
3+
# Copyright (C) 2009 Sun Microsystems, Inc
4+
#
5+
# This program is free software; you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation; version 2 of the License.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with this program; if not, write to the Free Software
16+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17+
218
#
319
# This script's purpose is to update the automake/autoconf helper scripts and
420
# to run a plain "configure" without any special compile flags. Only features
@@ -61,6 +77,7 @@ fi
6177
# Remember that configure restricts the man pages to the configured features !
6278
./configure \
6379
--with-embedded-server \
80+
--with-perfschema \
6481
--with-ndbcluster
6582
$gmake
6683

mysql-test/Makefile.am

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2000-2006 MySQL AB
1+
# Copyright (C) 2000-2006 MySQL AB, 2008-2009 Sun Microsystems, Inc.
22
#
33
# This library is free software; you can redistribute it and/or
44
# modify it under the terms of the GNU Library General Public
@@ -75,6 +75,8 @@ EXTRA_DIST = README \
7575

7676
# List of directories containing test + result files and the
7777
# related test data files that should be copied
78+
# If you want to add a new suite, please check DEFAULT_SUITES in
79+
# mysql-test-run.pl.
7880
TEST_DIRS = t r include std_data std_data/parts collections \
7981
std_data/ndb_backup50 std_data/ndb_backup51 \
8082
std_data/ndb_backup51_data_be std_data/ndb_backup51_data_le \
@@ -100,7 +102,9 @@ TEST_DIRS = t r include std_data std_data/parts collections \
100102
suite/rpl_ndb suite/rpl_ndb/t suite/rpl_ndb/r \
101103
suite/parts suite/parts/t suite/parts/r suite/parts/inc \
102104
suite/innodb suite/innodb/t suite/innodb/r suite/innodb/include \
103-
suite/sys_vars suite/sys_vars/t suite/sys_vars/inc suite/sys_vars/r
105+
suite/sys_vars suite/sys_vars/t suite/sys_vars/inc suite/sys_vars/r \
106+
suite/perfschema suite/perfschema/t suite/perfschema/r \
107+
suite/perfschema/include
104108

105109
# Used by dist-hook and install-data-local to copy all
106110
# test files into either dist or install directory

mysql-test/include/default_my.cnf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright (C) 2009 Sun Microsystems, Inc
2+
#
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation; version 2 of the License.
6+
#
7+
# This program is distributed in the hope that it will be useful,
8+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
# GNU General Public License for more details.
11+
#
12+
# You should have received a copy of the GNU General Public License
13+
# along with this program; if not, write to the Free Software
14+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15+
116
# Use default setting for mysqld processes
217
!include default_mysqld.cnf
318
!include default_client.cnf
@@ -9,6 +24,8 @@
924

1025
log-bin= master-bin
1126

27+
# Run tests with the performance schema instrumentation
28+
loose-enable-performance-schema
1229

1330
[mysqlbinlog]
1431
disable-force-if-open

mysql-test/include/default_mysqld.cnf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright (C) 2009 Sun Microsystems, Inc
2+
#
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation; version 2 of the License.
6+
#
7+
# This program is distributed in the hope that it will be useful,
8+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
# GNU General Public License for more details.
11+
#
12+
# You should have received a copy of the GNU General Public License
13+
# along with this program; if not, write to the Free Software
14+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15+
116
# Default values that applies to all MySQL Servers
217
[mysqld]
318
open-files-limit= 1024
@@ -26,3 +41,6 @@ slave-net-timeout=120
2641

2742
log-bin=mysqld-bin
2843

44+
# Run tests with the performance schema instrumentation
45+
loose-enable-performance-schema
46+

mysql-test/mysql-test-run.pl

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
#!/usr/bin/perl
22
# -*- cperl -*-
33

4+
# Copyright (C) 2009 Sun Microsystems, Inc
5+
#
6+
# This program is free software; you can redistribute it and/or modify
7+
# it under the terms of the GNU General Public License as published by
8+
# the Free Software Foundation; version 2 of the License.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program; if not, write to the Free Software
17+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18+
419
#
520
##############################################################################
621
#
@@ -128,7 +143,9 @@ END
128143
# executables will be used by the test suite.
129144
our $opt_vs_config = $ENV{'MTR_VS_CONFIG'};
130145

131-
my $DEFAULT_SUITES= "main,sys_vars,binlog,federated,rpl,rpl_ndb,ndb,innodb";
146+
# If you add a new suite, please check TEST_DIRS in Makefile.am.
147+
#
148+
my $DEFAULT_SUITES= "main,sys_vars,binlog,federated,rpl,rpl_ndb,ndb,innodb,perfschema";
132149
my $opt_suites;
133150

134151
our $opt_verbose= 0; # Verbose output, enable with --verbose

mysql-test/r/1st.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Database
33
information_schema
44
mtr
55
mysql
6+
performance_schema
67
test
78
show tables in mysql;
89
Tables_in_mysql

mysql-test/r/drop.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ information_schema
5050
mtr
5151
mysql
5252
mysqltest
53+
performance_schema
5354
test
5455
flush tables with read lock;
5556
drop database mysqltest;
@@ -61,6 +62,7 @@ Database
6162
information_schema
6263
mtr
6364
mysql
65+
performance_schema
6466
test
6567
drop database mysqltest;
6668
ERROR HY000: Can't drop database 'mysqltest'; database doesn't exist

mysql-test/r/information_schema.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ select * from information_schema.SCHEMATA where schema_name > 'm';
1111
CATALOG_NAME SCHEMA_NAME DEFAULT_CHARACTER_SET_NAME DEFAULT_COLLATION_NAME SQL_PATH
1212
def mtr latin1 latin1_swedish_ci NULL
1313
def mysql latin1 latin1_swedish_ci NULL
14+
def performance_schema utf8 utf8_general_ci NULL
1415
def test latin1 latin1_swedish_ci NULL
1516
select schema_name from information_schema.schemata;
1617
schema_name
1718
information_schema
1819
mtr
1920
mysql
21+
performance_schema
2022
test
2123
show databases like 't%';
2224
Database (t%)
@@ -26,6 +28,7 @@ Database
2628
information_schema
2729
mtr
2830
mysql
31+
performance_schema
2932
test
3033
show databases where `database` = 't%';
3134
Database
@@ -363,6 +366,7 @@ c
363366
information_schema
364367
mtr
365368
mysql
369+
performance_schema
366370
test
367371
explain select * from v0;
368372
id select_type table type possible_keys key key_len ref rows Extra

0 commit comments

Comments
 (0)