Commit 2f265f0c authored by unknown's avatar unknown
Browse files

Merge bk-internal:/home/bk/mysql-5.1-new

into  neptunus.(none):/home/msvensson/mysql/mysql-5.1

parents c5347f7d 178b1740
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -1374,7 +1374,8 @@ sub ndbcluster_install () {
		 "--verbose=2",
		 $ndbcluster_opts,
		 "--initial",
                 "--relative-config-data-dir"],
                 "--relative-config-data-dir",
	         "--core"],
		"", "", "", "") )
  {
    mtr_error("Error ndbcluster_install");
@@ -1410,7 +1411,8 @@ sub ndbcluster_start ($) {
  if ( mtr_run("$glob_mysql_test_dir/ndb/ndbcluster",
	       ["--port=$opt_ndbcluster_port",
		"--data-dir=$opt_vardir",
		"--verbose=2"],
		"--verbose=2",
	        "--core"],
	       "", "/dev/null", "", "") )
  {
    mtr_error("Error ndbcluster_start");
@@ -1467,7 +1469,8 @@ sub ndbcluster_install_slave () {
		 "--small",
		 "--ndbd-nodes=1",
		 "--initial",
		 "--relative-config-data-dir"],
		 "--relative-config-data-dir",
		 "--core"],
		"", "", "", "") )
  {
    mtr_error("Error ndbcluster_install_slave");
@@ -1501,7 +1504,8 @@ sub ndbcluster_start_slave ($) {
	       ["--port=$opt_ndbcluster_port_slave",
		"--data-dir=$opt_vardir",
		"--verbose=2",
		"--ndbd-nodes=1"],
		"--ndbd-nodes=1",
	        "--core"],
	       "", "/dev/null", "", "") )
  {
    mtr_error("Error ndbcluster_start_slave");
+2 −2
Original line number Diff line number Diff line
@@ -1278,7 +1278,7 @@ start_ndbcluster()
    then
      NDBCLUSTER_EXTRA_OPTS="--small"
    fi
    OPTS="$NDBCLUSTER_OPTS $NDBCLUSTER_EXTRA_OPTS --verbose=$NDB_VERBOSE --initial --relative-config-data-dir"
    OPTS="$NDBCLUSTER_OPTS $NDBCLUSTER_EXTRA_OPTS --verbose=$NDB_VERBOSE --initial --relative-config-data-dir --core"
    if [ "x$NDB_VERBOSE" != "x0" ] ; then
      echo "Starting master ndbcluster " $OPTS
    fi
@@ -1511,7 +1511,7 @@ start_slave()
         NDBCLUSTER_EXTRA_OPTS="--small"
      fi

      OPTS="$NDBCLUSTER_OPTS_SLAVE --initial $NDBCLUSTER_EXTRA_OPTS --ndbd-nodes=1 --verbose=$NDB_VERBOSE --relative-config-data-dir"
      OPTS="$NDBCLUSTER_OPTS_SLAVE --initial $NDBCLUSTER_EXTRA_OPTS --ndbd-nodes=1 --verbose=$NDB_VERBOSE --relative-config-data-dir --core"
      if [ "x$NDB_VERBOSE" != "x0" ] ; then
        echo "Starting slave ndbcluster " $OPTS
      fi
+8 −4
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ status_ndb=
ndb_diskless=0
ndbd_nodes=2
relative_config_data_dir=
opt_core=

ndb_no_ord=512
ndb_no_attr=2048
@@ -118,6 +119,9 @@ while test $# -gt 0; do
    --ndbd-extra-opts=*)
     NDBD_EXTRA_OPTS=`echo "$1" | sed -e "s;--ndbd-extra-opts=;;"`
     ;;
    --core)
     opt_core="--core"
     ;;
    --verbose=*)
     VERBOSE=`echo "$1" | sed -e "s;--verbose=;;"`
     ;;
@@ -153,10 +157,10 @@ if [ ! -f "$config_ini" ]; then
  exit 1
fi

exec_mgmtclient="$exec_mgmtclient --no-defaults $NDB_MGM_EXTRA_OPTS"
exec_mgmtsrvr="$exec_mgmtsrvr --no-defaults $NDB_MGMD_EXTRA_OPTS"
exec_ndb="$exec_ndb --no-defaults $NDBD_EXTRA_OPTS"
exec_waiter="$exec_waiter --no-defaults"
exec_mgmtclient="$exec_mgmtclient --no-defaults $opt_core $NDB_MGM_EXTRA_OPTS"
exec_mgmtsrvr="$exec_mgmtsrvr --no-defaults $opt_core $NDB_MGMD_EXTRA_OPTS"
exec_ndb="$exec_ndb --no-defaults $opt_core $NDBD_EXTRA_OPTS"
exec_waiter="$exec_waiter --no-defaults $opt_core"

ndb_host="localhost"
ndb_mgmd_port=$port
+0 −8
Original line number Diff line number Diff line
use test;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
drop table if exists t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
id    type                 state    logging database     schema   name
2     UserTable            Online   Yes     cluster_replication def      apply_status
1     SystemTable          Online   Yes     sys          def      NDB$EVENTS_0
3     UserTable            Online   Yes     cluster_replication def      schema
0     SystemTable          Online   Yes     sys          def      SYSTAB_0

NDBT_ProgramExit: 0 - OK

CREATE TABLE `t1_c` (
`capgoaledatta` smallint(5) unsigned NOT NULL auto_increment,
`goaledatta` char(2) NOT NULL default '',
+0 −3
Original line number Diff line number Diff line
@@ -8,9 +8,6 @@ drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
drop table if exists t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
--enable_warnings

--exec $NDB_TOOLS_DIR/ndb_show_tables
--exec $NDB_MGM --no-defaults -e "all dump 1000" >> $NDB_TOOLS_OUTPUT

CREATE TABLE `t1_c` (
  `capgoaledatta` smallint(5) unsigned NOT NULL auto_increment,
  `goaledatta` char(2) NOT NULL default '',
Loading