mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix mysql-test-run w.r.t NDB
"export A=var" is bash feature instead do "A=var; export A"
This commit is contained in:
@ -1450,9 +1450,11 @@ then
|
|||||||
then
|
then
|
||||||
echo "Starting ndbcluster"
|
echo "Starting ndbcluster"
|
||||||
./ndb/ndbcluster --port-base=$NDBCLUSTER_PORT --small --diskless --initial --data-dir=$MYSQL_TEST_DIR/var || exit 1
|
./ndb/ndbcluster --port-base=$NDBCLUSTER_PORT --small --diskless --initial --data-dir=$MYSQL_TEST_DIR/var || exit 1
|
||||||
export NDB_CONNECTSTRING="host=localhost:$NDBCLUSTER_PORT"
|
NDB_CONNECTSTRING="host=localhost:$NDBCLUSTER_PORT"
|
||||||
|
export NDB_CONNECTSTRING
|
||||||
else
|
else
|
||||||
export NDB_CONNECTSTRING="$USE_RUNNING_NDBCLUSTER"
|
NDB_CONNECTSTRING="$USE_RUNNING_NDBCLUSTER"
|
||||||
|
export NDB_CONNECTSTRING
|
||||||
echo "Using ndbcluster at $NDB_CONNECTSTRING"
|
echo "Using ndbcluster at $NDB_CONNECTSTRING"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -86,7 +86,6 @@ fs_name_1=$fs_ndb/node-1-fs
|
|||||||
fs_name_2=$fs_ndb/node-2-fs
|
fs_name_2=$fs_ndb/node-2-fs
|
||||||
|
|
||||||
NDB_HOME=
|
NDB_HOME=
|
||||||
export NDB_CONNECTSTRING
|
|
||||||
if [ ! -x $fsdir ]; then
|
if [ ! -x $fsdir ]; then
|
||||||
echo "$fsdir missing"
|
echo "$fsdir missing"
|
||||||
exit 1
|
exit 1
|
||||||
@ -102,7 +101,8 @@ fi
|
|||||||
|
|
||||||
ndb_host="localhost"
|
ndb_host="localhost"
|
||||||
ndb_mgmd_port=$port_base
|
ndb_mgmd_port=$port_base
|
||||||
export NDB_CONNECTSTRING="host=$ndb_host:$ndb_mgmd_port"
|
NDB_CONNECTSTRING="host=$ndb_host:$ndb_mgmd_port"
|
||||||
|
export NDB_CONNECTSTRING
|
||||||
|
|
||||||
start_default_ndbcluster() {
|
start_default_ndbcluster() {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user