mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
Merge dev3-240.dev.cn.tlan:/home/justin.he/mysql/mysql-5.1/mysql-5.1-new-ndb
into dev3-240.dev.cn.tlan:/home/justin.he/mysql/mysql-5.1/mysql-5.1-new-ndb-bj.merge
This commit is contained in:
commit
01884a431f
13 changed files with 27 additions and 8 deletions
|
@ -111,4 +111,10 @@ SYSTEM_VALUES_ID VALUE
|
|||
SELECT * FROM mysql.ndb_apply_status WHERE server_id=0;
|
||||
server_id epoch log_name start_pos end_pos
|
||||
0 331 0 0
|
||||
SELECT * FROM DESCRIPTION;
|
||||
USERNAME ADDRESS
|
||||
Guangbao Ni Suite 503, 5F NCI Tower, A12 Jianguomenwai Avenue Chaoyang District, Beijing, 100022 PRC
|
||||
David Li Suite 503, 5F NCI Tower, A12 Jianguomenwai Avenue Chaoyang District, Beijing, 100022 PRC
|
||||
USERNAME Varchar(255;latin1_swedish_ci) NULL AT=SHORT_VAR ST=MEMORY
|
||||
ADDRESS Longvarchar(2002;latin1_swedish_ci) NULL AT=MEDIUM_VAR ST=MEMORY
|
||||
DROP DATABASE BANK;
|
||||
|
|
BIN
mysql-test/std_data/ndb_backup50/BACKUP-2-0.1.Data
Normal file
BIN
mysql-test/std_data/ndb_backup50/BACKUP-2-0.1.Data
Normal file
Binary file not shown.
BIN
mysql-test/std_data/ndb_backup50/BACKUP-2-0.2.Data
Normal file
BIN
mysql-test/std_data/ndb_backup50/BACKUP-2-0.2.Data
Normal file
Binary file not shown.
BIN
mysql-test/std_data/ndb_backup50/BACKUP-2.1.ctl
Normal file
BIN
mysql-test/std_data/ndb_backup50/BACKUP-2.1.ctl
Normal file
Binary file not shown.
BIN
mysql-test/std_data/ndb_backup50/BACKUP-2.1.log
Normal file
BIN
mysql-test/std_data/ndb_backup50/BACKUP-2.1.log
Normal file
Binary file not shown.
BIN
mysql-test/std_data/ndb_backup50/BACKUP-2.2.ctl
Normal file
BIN
mysql-test/std_data/ndb_backup50/BACKUP-2.2.ctl
Normal file
Binary file not shown.
BIN
mysql-test/std_data/ndb_backup50/BACKUP-2.2.log
Normal file
BIN
mysql-test/std_data/ndb_backup50/BACKUP-2.2.log
Normal file
Binary file not shown.
|
@ -58,4 +58,10 @@ SELECT * FROM ACCOUNT ORDER BY ACCOUNT_ID;
|
|||
SELECT COUNT(*) FROM TRANSACTION;
|
||||
SELECT * FROM SYSTEM_VALUES ORDER BY SYSTEM_VALUES_ID;
|
||||
SELECT * FROM mysql.ndb_apply_status WHERE server_id=0;
|
||||
--exec $NDB_TOOLS_DIR/ndb_restore --no-defaults -b 2 -n 1 -m -p 1 -s -r $MYSQL_TEST_DIR/std_data/ndb_backup50 >> $NDB_TOOLS_OUTPUT
|
||||
--exec $NDB_TOOLS_DIR/ndb_restore --no-defaults -b 2 -n 2 -p 1 -s -r $MYSQL_TEST_DIR/std_data/ndb_backup50 >> $NDB_TOOLS_OUTPUT
|
||||
SELECT * FROM DESCRIPTION;
|
||||
--exec $NDB_TOOLS_DIR/ndb_desc --no-defaults -d BANK DESCRIPTION | grep SHORT_VAR
|
||||
--exec $NDB_TOOLS_DIR/ndb_desc --no-defaults -d BANK DESCRIPTION | grep MEDIUM_VAR
|
||||
|
||||
DROP DATABASE BANK;
|
||||
|
|
|
@ -229,14 +229,12 @@ static int ndb_to_mysql_error(const NdbError *ndberr)
|
|||
*/
|
||||
case HA_ERR_NO_SUCH_TABLE:
|
||||
case HA_ERR_KEY_NOT_FOUND:
|
||||
case HA_ERR_FOUND_DUPP_KEY:
|
||||
return error;
|
||||
|
||||
/* Mapping missing, go with the ndb error code*/
|
||||
case -1:
|
||||
error= ndberr->code;
|
||||
break;
|
||||
|
||||
/* Mapping exists, go with the mapped code */
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -90,8 +90,6 @@ void getRestartAction(Uint32 action, BaseString &str)
|
|||
if (action == 0)
|
||||
return;
|
||||
str.appfmt(", restarting");
|
||||
if (action & 2)
|
||||
str.appfmt(", no start");
|
||||
if (action & 4)
|
||||
str.appfmt(", initial");
|
||||
}
|
||||
|
|
|
@ -2086,7 +2086,7 @@ CommandInterpreter::executeRestart(Vector<BaseString> &command_list,
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (!nostart)
|
||||
if (nostart)
|
||||
ndbout_c("Shutting down nodes with \"-n, no start\" option, to subsequently start the nodes.");
|
||||
|
||||
result= ndb_mgm_restart3(m_mgmsrv, no_of_nodes, node_ids,
|
||||
|
@ -2106,7 +2106,15 @@ CommandInterpreter::executeRestart(Vector<BaseString> &command_list,
|
|||
ndbout << "Node";
|
||||
for (int i= 0; i < no_of_nodes; i++)
|
||||
ndbout << " " << node_ids[i];
|
||||
ndbout_c(" is being restarted");
|
||||
ndbout_c(": Is being restarted");
|
||||
|
||||
ndbout << "Node";
|
||||
for (int i= 0; i < no_of_nodes; i++)
|
||||
ndbout << " " << node_ids[i];
|
||||
if (nostart)
|
||||
ndbout_c(": No start");
|
||||
else
|
||||
ndbout_c(": Is rejoining the cluster");
|
||||
}
|
||||
if(need_disconnect)
|
||||
disconnect();
|
||||
|
|
|
@ -607,7 +607,10 @@ RestoreDataIterator::getNextTuple(int & res)
|
|||
attr_data->size = 4*sz;
|
||||
|
||||
//if (m_currentTable->getTableId() >= 2) { ndbout << "fix i=" << i << " off=" << ptr-buf_ptr << " attrId=" << attrId << endl; }
|
||||
|
||||
if(!m_hostByteOrder
|
||||
&& attr_desc->m_column->getType() == NdbDictionary::Column::Timestamp)
|
||||
attr_data->u_int32_value[0] = Twiddle32(attr_data->u_int32_value[0]);
|
||||
|
||||
if(!Twiddle(attr_desc, attr_data))
|
||||
{
|
||||
res = -1;
|
||||
|
|
|
@ -138,7 +138,7 @@ static struct my_option my_long_options[] =
|
|||
"(parallelism can be 1 to 1024)",
|
||||
(gptr*) &ga_nParallelism, (gptr*) &ga_nParallelism, 0,
|
||||
GET_INT, REQUIRED_ARG, 128, 1, 1024, 0, 1, 0 },
|
||||
{ "print", OPT_PRINT, "Print data and log to stdout",
|
||||
{ "print", OPT_PRINT, "Print metadata, data and log to stdout",
|
||||
(gptr*) &_print, (gptr*) &_print, 0,
|
||||
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0 },
|
||||
{ "print_data", OPT_PRINT_DATA, "Print data to stdout",
|
||||
|
|
Loading…
Reference in a new issue