mirror of
https://github.com/MariaDB/server.git
synced 2025-12-18 10:22:14 +03:00
make sure ndb threads are not started with too small stacksize (which results in default, much too big, stack size to be used)
moved initialization of ndbd fs block first to ensure that it gets enough space for allocation of file system thread stacks
changed event buffer reporting in ndb to occur not as often
corrected the bank application
corrected output from run-test make-config.sh
storage/ndb/src/common/portlib/NdbThread.c:
fix error handling if thread creation fails in ndbd
make sure ndb threads are not started with too small stacksize (which results in default, much too big, stack size to be used)
storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp:
moved initialization of ndbd fs block first to ensure that it gets enough space for allocation of file system thread stacks
storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp:
fix error handling if thread creation fails in ndbd
storage/ndb/src/ndbapi/Ndb.cpp:
changed event buffer reporting in ndb to occur not as often
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp:
changed event buffer reporting in ndb to occur not as often
storage/ndb/src/ndbapi/NdbEventOperationImpl.hpp:
changed event buffer reporting in ndb to occur not as often
storage/ndb/test/ndbapi/bank/BankLoad.cpp:
corrected the bank application
storage/ndb/test/run-test/make-config.sh:
corrected output from run-test make-config.sh
102 lines
2.3 KiB
Bash
Executable File
102 lines
2.3 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
baseport=""
|
|
basedir=""
|
|
proc_no=1
|
|
node_id=1
|
|
|
|
d_file=/tmp/d.$$
|
|
dir_file=/tmp/dirs.$$
|
|
config_file=/tmp/config.$$
|
|
cluster_file=/tmp/cluster.$$
|
|
|
|
add_procs(){
|
|
type=$1; shift
|
|
while [ $# -ne 0 ]
|
|
do
|
|
add_proc $type $1
|
|
shift
|
|
done
|
|
}
|
|
|
|
add_proc (){
|
|
case $type in
|
|
mgm)
|
|
echo "$proc_no.ndb_mgmd" >> $dir_file
|
|
echo "[ndb_mgmd]" >> $config_file
|
|
echo "Id: $node_id" >> $config_file
|
|
echo "HostName: $2" >> $config_file
|
|
node_id=`expr $node_id + 1`
|
|
;;
|
|
api)
|
|
echo "$proc_no.ndb_api" >> $dir_file
|
|
echo "[api]" >> $config_file
|
|
echo "Id: $node_id" >> $config_file
|
|
echo "HostName: $2" >> $config_file
|
|
node_id=`expr $node_id + 1`
|
|
;;
|
|
ndb)
|
|
echo "$proc_no.ndbd" >> $dir_file
|
|
echo "[ndbd]" >> $config_file
|
|
echo "Id: $node_id" >> $config_file
|
|
echo "HostName: $2" >> $config_file
|
|
node_id=`expr $node_id + 1`
|
|
;;
|
|
mysqld)
|
|
echo "$proc_no.mysqld" >> $dir_file
|
|
echo "[mysqld]" >> $config_file
|
|
echo "Id: $node_id" >> $config_file
|
|
echo "HostName: $2" >> $config_file
|
|
node_id=`expr $node_id + 1`
|
|
;;
|
|
mysql)
|
|
echo "$proc_no.mysql" >> $dir_file
|
|
;;
|
|
esac
|
|
proc_no=`expr $proc_no + 1`
|
|
}
|
|
|
|
|
|
cnf=/dev/null
|
|
cat $1 | while read line
|
|
do
|
|
case $line in
|
|
baseport:*) baseport=`echo $line | sed 's/baseport[ ]*:[ ]*//g'`;;
|
|
basedir:*) basedir=`echo $line | sed 's/basedir[ ]*:[ ]*//g'`;;
|
|
mgm:*) add_procs mgm `echo $line | sed 's/mgm[ ]*:[ ]*//g'`;;
|
|
api:*) add_procs api `echo $line | sed 's/api[ ]*:[ ]*//g'`;;
|
|
ndb:*) add_procs ndb `echo $line | sed 's/ndb[ ]*:[ ]*//g'`;;
|
|
mysqld:*) add_procs mysqld `echo $line | sed 's/mysqld[ ]*:[ ]*//g'`;;
|
|
mysql:*) add_procs mysql `echo $line | sed 's/mysql[ ]*:[ ]*//g'`;;
|
|
"-- cluster config")
|
|
if [ "$cnf" = "/dev/null" ]
|
|
then
|
|
cnf=$cluster_file
|
|
else
|
|
cnf=/dev/null
|
|
fi
|
|
line="";;
|
|
*) echo $line >> $cnf; line="";;
|
|
esac
|
|
if [ "$line" ]
|
|
then
|
|
echo $line >> $d_file
|
|
fi
|
|
done
|
|
|
|
cat $dir_file | xargs mkdir -p
|
|
|
|
if [ -f $cluster_file ]
|
|
then
|
|
cat $cluster_file $config_file >> /tmp/config2.$$
|
|
mv /tmp/config2.$$ $config_file
|
|
fi
|
|
|
|
for i in `find . -type d -name '*.ndb_mgmd'`
|
|
do
|
|
cp $config_file $i/config.ini
|
|
done
|
|
|
|
mv $d_file d.txt
|
|
rm -f $config_file $dir_file $cluster_file
|