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
d1536ba0
Commit
d1536ba0
authored
Apr 24, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make have_ndb.in portable
parent
7e3593de
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
mysql-test/include/have_ndb.inc
mysql-test/include/have_ndb.inc
+8
-1
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+3
-2
No files found.
mysql-test/include/have_ndb.inc
View file @
d1536ba0
--
exec
test
x
$NDB_STATUS_OK
=
x1
# Check that server is compiled and started with support for NDB
--
require
r
/
have_ndb
.
require
disable_query_log
;
show
variables
like
"have_ndbcluster"
;
enable_query_log
;
# Check that NDB is installed and known to be working
--
require
r
/
have_ndb_status_ok
.
require
disable_query_log
;
eval
select
"
$NDB_STATUS_OK
"
as
ndb_status_ok
;
enable_query_log
;
mysql-test/mysql-test-run.pl
View file @
d1536ba0
...
...
@@ -1175,6 +1175,7 @@ sub environment_setup () {
$ENV
{'
MYSQL_TCP_PORT
'}
=
3306
;
$ENV
{'
NDBCLUSTER_PORT
'}
=
$opt_ndbcluster_port
;
$ENV
{'
NDB_STATUS_OK
'}
=
"
YES
";
$ENV
{'
IM_PATH_PID
'}
=
$instance_manager
->
{
path_pid
};
$ENV
{'
IM_PORT
'}
=
$instance_manager
->
{
port
};
...
...
@@ -1661,6 +1662,7 @@ sub mysql_install_db () {
mtr_report
("
ndbcluster_install failed, continuing without cluster
");
$opt_with_ndbcluster
=
0
;
$flag_ndb_status_ok
=
0
;
$ENV
{'
NDB_STATUS_OK
'}
=
"
NO
";
}
else
{
...
...
@@ -1682,7 +1684,7 @@ sub install_db ($$) {
my
$init_db_sql_tmp
=
"
/tmp/init_db.sql$$
";
my
$args
;
mtr_report
("
Installing
\
u
$type
Database
s
");
mtr_report
("
Installing
\
u
$type
Database
");
open
(
IN
,
$init_db_sql
)
or
mtr_error
("
Can't open
$init_db_sql
: $!
");
...
...
@@ -2935,7 +2937,6 @@ sub run_mysqltest ($) {
$ENV
{'
CHARSETSDIR
'}
=
$path_charsetsdir
;
$ENV
{'
MYSQL_MY_PRINT_DEFAULTS
'}
=
$exe_my_print_defaults
;
$ENV
{'
NDB_STATUS_OK
'}
=
$flag_ndb_status_ok
;
$ENV
{'
NDB_MGM
'}
=
$exe_ndb_mgm
;
$ENV
{'
NDB_BACKUP_DIR
'}
=
$path_ndb_data_dir
;
$ENV
{'
NDB_DATA_DIR
'}
=
$path_ndb_data_dir
;
...
...
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