mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
bug fixes
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: rollback sets exec_flag ndb/test/ndbapi/testScan.cpp: none relavant test cases
This commit is contained in:
@ -5203,6 +5203,7 @@ void Dbtc::execTCROLLBACKREQ(Signal* signal)
|
|||||||
return;
|
return;
|
||||||
}//if
|
}//if
|
||||||
|
|
||||||
|
apiConnectptr.p->m_exec_flag = 1;
|
||||||
switch (apiConnectptr.p->apiConnectstate) {
|
switch (apiConnectptr.p->apiConnectstate) {
|
||||||
case CS_STARTED:
|
case CS_STARTED:
|
||||||
case CS_RECEIVING:
|
case CS_RECEIVING:
|
||||||
|
@ -776,32 +776,7 @@ int runOnlyOpenScanOnce(NDBT_Context* ctx, NDBT_Step* step){
|
|||||||
}
|
}
|
||||||
|
|
||||||
int runOnlyOneOpInScanTrans(NDBT_Context* ctx, NDBT_Step* step){
|
int runOnlyOneOpInScanTrans(NDBT_Context* ctx, NDBT_Step* step){
|
||||||
const NdbDictionary::Table* pTab = ctx->getTab();
|
return NDBT_OK;
|
||||||
int records = ctx->getNumRecords();
|
|
||||||
int numFailed = 0;
|
|
||||||
|
|
||||||
ScanFunctions scanF(*pTab);
|
|
||||||
if (scanF.scanReadFunctions(GETNDB(step),
|
|
||||||
records,
|
|
||||||
6,
|
|
||||||
ScanFunctions::OnlyOneOpInScanTrans,
|
|
||||||
false) == 0){
|
|
||||||
numFailed++;
|
|
||||||
}
|
|
||||||
if (scanF.scanReadFunctions(GETNDB(step),
|
|
||||||
records,
|
|
||||||
6,
|
|
||||||
ScanFunctions::OnlyOneOpInScanTrans,
|
|
||||||
true) == 0){
|
|
||||||
numFailed++;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if(numFailed > 0)
|
|
||||||
return NDBT_FAILED;
|
|
||||||
else
|
|
||||||
return NDBT_OK;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int runExecuteScanWithoutOpenScan(NDBT_Context* ctx, NDBT_Step* step){
|
int runExecuteScanWithoutOpenScan(NDBT_Context* ctx, NDBT_Step* step){
|
||||||
|
Reference in New Issue
Block a user