mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
ndb - bug#24717
fixes to testprogram to test new impl. in 5.1
This commit is contained in:
@ -141,7 +141,7 @@ public:
|
||||
TuxSetLogFlags = 12002,
|
||||
TuxMetaDataJunk = 12009,
|
||||
|
||||
DumpTsman = 9002,
|
||||
DumpTsman = 9800,
|
||||
DumpLgman = 10000,
|
||||
DumpPgman = 11000
|
||||
};
|
||||
|
@ -578,6 +578,7 @@ void Cmvmi::execCONNECT_REP(Signal *signal){
|
||||
/**
|
||||
* Dont allow api nodes to connect
|
||||
*/
|
||||
ndbout_c("%d %d %d", hostId, type, globalData.theStartLevel);
|
||||
abort();
|
||||
globalTransporterRegistry.do_disconnect(hostId);
|
||||
}
|
||||
@ -1208,13 +1209,16 @@ Cmvmi::execDUMP_STATE_ORD(Signal* signal)
|
||||
if (arg == 9001)
|
||||
{
|
||||
CLEAR_ERROR_INSERT_VALUE;
|
||||
for (Uint32 i = 0; i<MAX_NODES; i++)
|
||||
if (signal->getLength() == 1 || signal->theData[1])
|
||||
{
|
||||
if (c_error_9000_nodes_mask.get(i))
|
||||
for (Uint32 i = 0; i<MAX_NODES; i++)
|
||||
{
|
||||
signal->theData[0] = 0;
|
||||
signal->theData[1] = i;
|
||||
EXECUTE_DIRECT(CMVMI, GSN_OPEN_COMREQ, signal, 2);
|
||||
if (c_error_9000_nodes_mask.get(i))
|
||||
{
|
||||
signal->theData[0] = 0;
|
||||
signal->theData[1] = i;
|
||||
EXECUTE_DIRECT(CMVMI, GSN_OPEN_COMREQ, signal, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
c_error_9000_nodes_mask.clear();
|
||||
|
@ -1005,7 +1005,7 @@ int runBug24717(NDBT_Context* ctx, NDBT_Step* step){
|
||||
|
||||
HugoTransactions hugoTrans(*ctx->getTab());
|
||||
|
||||
int dump[] = { 9002, 0 } ;
|
||||
int dump[] = { 9000, 0 } ;
|
||||
Uint32 ownNode = refToNode(pNdb->getReference());
|
||||
dump[1] = ownNode;
|
||||
|
||||
@ -1025,6 +1025,8 @@ int runBug24717(NDBT_Context* ctx, NDBT_Step* step){
|
||||
hugoTrans.pkReadRecords(pNdb, 100, 1, NdbOperation::LM_CommittedRead);
|
||||
}
|
||||
|
||||
int reset[2] = { 9001, 0 };
|
||||
restarter.dumpStateOneNode(nodeId, reset, 2);
|
||||
restarter.waitClusterStarted();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user