Skip to content

Commit 8b2e2e0

Browse files
author
magnus.blaudd@oracle.com
committed
Merge 7.3 -> trunk-cluster
2 parents 85596bd + c05273c commit 8b2e2e0

File tree

59 files changed

+471
-413
lines changed

Some content is hidden

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

59 files changed

+471
-413
lines changed

mysql-test/include/have_ndb_debug.inc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Check that ndb is compiled for debugging
2+
# to all for using debugging commands in ndb_mgm
3+
disable_query_log;
4+
--exec $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" --verbose=0 -e "help" > $MYSQLTEST_VARDIR/tmp/help_debug.txt
5+
create table help_debug(help varchar(256));
6+
-- eval load data local infile '$MYSQLTEST_VARDIR/tmp/help_debug.txt' into table help_debug;
7+
-- require r/have_ndb_debug.require
8+
select count(*) as have_ndb_debug from help_debug where help like "%debug compiled%";
9+
-- eval drop table help_debug;
10+
enable_query_log;

mysql-test/r/have_ndb_debug.require

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
have_ndb_debug
2+
1

mysql-test/suite/ndb/r/ndb_join_pushdown_bka.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -6645,8 +6645,8 @@ FROM t1
66456645
LEFT OUTER JOIN t2 ON t2.id = t1.t2_id
66466646
LEFT OUTER JOIN t2 as t3 ON t3.id = t1.t2_id;
66476647
id t2_id id t3_id id t3_id
6648-
23 24 24 NULL 24 NULL
66496648
20 NULL NULL NULL NULL NULL
6649+
23 24 24 NULL 24 NULL
66506650
DROP TABLE t1,t2,t3,t4;
66516651
CREATE TABLE t1 (
66526652
a int NOT NULL,

mysql-test/suite/ndb/t/ndb_bug14166590.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
-- source include/not_embedded.inc
66
-- source include/have_ndb.inc
77
# We are using some debug-only features in this test
8-
--source include/have_debug.inc
8+
--source include/have_ndb_debug.inc
99

1010
--disable_warnings
1111
DROP TABLE IF EXISTS t1;

mysql-test/suite/ndb/t/ndb_join_pushdown.inc

+1
Original file line numberDiff line numberDiff line change
@@ -4062,6 +4062,7 @@ SELECT *
40624062
FROM t1
40634063
LEFT OUTER JOIN t2 ON t2.id = t1.t2_id
40644064
LEFT OUTER JOIN t2 as t3 ON t3.id = t1.t2_id;
4065+
--sorted_result
40654066
SELECT *
40664067
FROM t1
40674068
LEFT OUTER JOIN t2 ON t2.id = t1.t2_id

mysql-test/suite/ndb_big/rqg_spj.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ let $cmd = $RUN_RQG -g spj_test.yy -t 600;
4747
--exec bash -c "$cmd"
4848
--exec bash -c "$cmd"
4949

50-
drop database spj_myisam;
50+
drop database spj_innodb;
5151
drop database spj_ndb;
5252

5353
--disable_query_log

mysql-test/suite/ndb_binlog/t/ndb_binlog_discover_multi.test

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ select * from t1;
8888

8989
FLUSH BINARY LOGS;
9090
let $MYSQLD_DATADIR= `select @@datadir;`;
91-
--exec $MYSQL_BINLOG --verbose $MYSQLD_DATADIR/mysqld-bin.000003 | grep "@2='String to find'"
91+
--replace_regex /(.*)/REMOVE_LINE:\1/ /REMOVE_LINE:(.*@2='String to find')/KEEP_LINE:\1/ /REMOVE_LINE:.*// /KEEP_LINE://
92+
--exec $MYSQL_BINLOG --verbose $MYSQLD_DATADIR/mysqld-bin.000003
9293

9394
#
9495
# Cleanup

storage/ndb/CMakeLists.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ ENDIF()
6464
IF(CMAKE_COMPILER_IS_GNUCXX)
6565
INCLUDE(CheckCXXCompilerFlag)
6666
FOREACH(warning "unused-but-set-variable" "strict-aliasing")
67-
UNSET(flag_supported CACHE)
68-
CHECK_CXX_COMPILER_FLAG("-Wno-${warning}" flag_supported)
69-
IF(flag_supported)
67+
STRING(REPLACE "-" "_" warning_ ${warning})
68+
STRING(TOUPPER ${warning_} WARNING)
69+
CHECK_CXX_COMPILER_FLAG("-Wno-${warning}" HAVE_${WARNING})
70+
IF(HAVE_${WARNING})
7071
MESSAGE(STATUS "Disabling -W${warning} warning")
7172
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-${warning}")
7273
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-${warning}")

storage/ndb/clusterj/CMakeLists.txt

+47-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -57,3 +57,49 @@ CREATE_JAR(clusterj
5757

5858
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/clusterj-${JAVA_NDB_VERSION}.jar
5959
DESTINATION ${INSTALL_MYSQLSHAREDIR}/java COMPONENT ClusterJ)
60+
61+
# create maven pom.xml in all subdirectories
62+
SET(CLUSTERJ_PROJECTS api core jdbc jpatest openjpa test tie unit)
63+
64+
IF(WIN32)
65+
66+
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/pom.xml.in
67+
${CMAKE_CURRENT_SOURCE_DIR}/pom.xml
68+
@ONLY NEWLINE_STYLE WIN32)
69+
70+
FOREACH(CLUSTERJ_PROJECT ${CLUSTERJ_PROJECTS})
71+
# build all the pom.xml for windows
72+
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/clusterj-${CLUSTERJ_PROJECT}/pom.xml.in
73+
${CMAKE_CURRENT_SOURCE_DIR}/clusterj-${CLUSTERJ_PROJECT}/pom.xml
74+
@ONLY NEWLINE_STYLE WIN32)
75+
ENDFOREACH(CLUSTERJ_PROJECT in CLUSTERJ_PROJECTS)
76+
77+
# build the mvn_install_ndbjtie for windows
78+
#CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mvn_install_ndbjtie.cmd.in
79+
# ${CMAKE_CURRENT_SOURCE_DIR}/mvn_install_ndbjtie.cmd
80+
# @ONLY NEWLINE_STYLE WIN32)
81+
82+
ELSE(WIN32)
83+
84+
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/pom.xml.in
85+
${CMAKE_CURRENT_SOURCE_DIR}/pom.xml
86+
@ONLY NEWLINE_STYLE UNIX)
87+
88+
FOREACH(CLUSTERJ_PROJECT ${CLUSTERJ_PROJECTS})
89+
# build the pom.xml for *nix
90+
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/clusterj-${CLUSTERJ_PROJECT}/pom.xml.in
91+
${CMAKE_CURRENT_SOURCE_DIR}/clusterj-${CLUSTERJ_PROJECT}/pom.xml
92+
@ONLY NEWLINE_STYLE UNIX)
93+
ENDFOREACH(CLUSTERJ_PROJECT in CLUSTERJ_PROJECTS)
94+
95+
# build the mvn_install_ndbjtie for *nix
96+
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mvn_install_ndbjtie.sh.in
97+
${CMAKE_CURRENT_SOURCE_DIR}/mvn_install_ndbjtie.sh
98+
@ONLY NEWLINE_STYLE UNIX)
99+
100+
ADD_CUSTOM_TARGET(mvn_install_ndbjtie ALL
101+
chmod a+x "${CMAKE_CURRENT_SOURCE_DIR}/mvn_install_ndbjtie.sh"
102+
|| echo "") # don't break the build if file was deleted)
103+
104+
ENDIF(WIN32)
105+

storage/ndb/clusterj/clusterj-api/pom.xml renamed to storage/ndb/clusterj/clusterj-api/pom.xml.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
3+
Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -20,13 +20,13 @@
2020
<parent>
2121
<groupId>com.mysql.clusterj</groupId>
2222
<artifactId>clusterj-aggregate</artifactId>
23-
<version>7.1.22-SNAPSHOT</version>
23+
<version>@JAVA_NDB_VERSION@@JAVA_MVN_SUFFIX@</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<groupId>com.mysql.clusterj</groupId>
2727
<artifactId>clusterj-api</artifactId>
2828
<packaging>bundle</packaging>
29-
<version>7.1.22-SNAPSHOT</version>
29+
<version>@JAVA_NDB_VERSION@@JAVA_MVN_SUFFIX@</version>
3030
<name>ClusterJ API</name>
3131
<description>The API for ClusterJ</description>
3232
<build>

storage/ndb/clusterj/clusterj-bindings/pom.xml

-167
This file was deleted.

storage/ndb/clusterj/clusterj-core/pom.xml renamed to storage/ndb/clusterj/clusterj-core/pom.xml.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
3+
Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -20,13 +20,13 @@
2020
<parent>
2121
<groupId>com.mysql.clusterj</groupId>
2222
<artifactId>clusterj-aggregate</artifactId>
23-
<version>7.1.22-SNAPSHOT</version>
23+
<version>@JAVA_NDB_VERSION@@JAVA_MVN_SUFFIX@</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<groupId>com.mysql.clusterj</groupId>
2727
<artifactId>clusterj-core</artifactId>
2828
<packaging>bundle</packaging>
29-
<version>7.1.22-SNAPSHOT</version>
29+
<version>@JAVA_NDB_VERSION@@JAVA_MVN_SUFFIX@</version>
3030
<name>ClusterJ Core</name>
3131
<description>The core implementation of ClusterJ</description>
3232
<build>

storage/ndb/clusterj/clusterj-jdbc/pom.xml renamed to storage/ndb/clusterj/clusterj-jdbc/pom.xml.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
3+
Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -19,13 +19,13 @@
1919
<parent>
2020
<groupId>com.mysql.clusterj</groupId>
2121
<artifactId>clusterj-aggregate</artifactId>
22-
<version>7.1.22-SNAPSHOT</version>
22+
<version>@JAVA_NDB_VERSION@@JAVA_MVN_SUFFIX@</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525
<groupId>clusterj</groupId>
2626
<artifactId>clusterj-jdbc</artifactId>
2727
<name>ClusterJ JDBC Plugin</name>
28-
<version>7.1.22-SNAPSHOT</version>
28+
<version>@JAVA_NDB_VERSION@@JAVA_MVN_SUFFIX@</version>
2929
<dependencies>
3030
<dependency>
3131
<groupId>com.mysql.clusterj</groupId>

storage/ndb/clusterj/clusterj-jpatest/pom.xml renamed to storage/ndb/clusterj/clusterj-jpatest/pom.xml.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
3+
Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -28,12 +28,12 @@
2828
<parent>
2929
<groupId>com.mysql.clusterj</groupId>
3030
<artifactId>clusterj-aggregate</artifactId>
31-
<version>7.1.22-SNAPSHOT</version>
31+
<version>@JAVA_NDB_VERSION@@JAVA_MVN_SUFFIX@</version>
3232
</parent>
3333
<modelVersion>4.0.0</modelVersion>
3434
<groupId>com.mysql.clusterj</groupId>
3535
<artifactId>clusterj-jpatest</artifactId>
36-
<version>7.1.22-SNAPSHOT</version>
36+
<version>@JAVA_NDB_VERSION@@JAVA_MVN_SUFFIX@</version>
3737
<packaging>jar</packaging>
3838
<name>ClusterJ JPA Integration Tests</name>
3939

0 commit comments

Comments
 (0)