mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Merge mysql.com:/home/jonas/src/mysql-4.1-fix
into mysql.com:/home/jonas/src/mysql-4.1 ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Auto merged
This commit is contained in:
commit
eb21ec54c8
1 changed files with 14 additions and 8 deletions
|
@ -7320,6 +7320,8 @@ void Dblqh::closeScanRequestLab(Signal* signal)
|
|||
scanptr.p->m_curr_batch_size_rows = 0;
|
||||
scanptr.p->m_curr_batch_size_bytes= 0;
|
||||
sendScanFragConf(signal, ZTRUE);
|
||||
abort_scan(signal, scanptr.i, 0);
|
||||
return;
|
||||
break;
|
||||
case TcConnectionrec::SCAN_TUPKEY:
|
||||
case TcConnectionrec::SCAN_FIRST_STOPPED:
|
||||
|
@ -7710,14 +7712,18 @@ void Dblqh::abort_scan(Signal* signal, Uint32 scan_ptr_i, Uint32 errcode){
|
|||
releaseScanrec(signal);
|
||||
tcConnectptr.p->transactionState = TcConnectionrec::IDLE;
|
||||
tcConnectptr.p->abortState = TcConnectionrec::ABORT_ACTIVE;
|
||||
|
||||
ScanFragRef * ref = (ScanFragRef*)&signal->theData[0];
|
||||
ref->senderData = tcConnectptr.p->clientConnectrec;
|
||||
ref->transId1 = tcConnectptr.p->transid[0];
|
||||
ref->transId2 = tcConnectptr.p->transid[1];
|
||||
ref->errorCode = errcode;
|
||||
sendSignal(tcConnectptr.p->clientBlockref, GSN_SCAN_FRAGREF, signal,
|
||||
ScanFragRef::SignalLength, JBB);
|
||||
|
||||
if(errcode)
|
||||
{
|
||||
jam();
|
||||
ScanFragRef * ref = (ScanFragRef*)&signal->theData[0];
|
||||
ref->senderData = tcConnectptr.p->clientConnectrec;
|
||||
ref->transId1 = tcConnectptr.p->transid[0];
|
||||
ref->transId2 = tcConnectptr.p->transid[1];
|
||||
ref->errorCode = errcode;
|
||||
sendSignal(tcConnectptr.p->clientBlockref, GSN_SCAN_FRAGREF, signal,
|
||||
ScanFragRef::SignalLength, JBB);
|
||||
}
|
||||
deleteTransidHash(signal);
|
||||
releaseOprec(signal);
|
||||
releaseTcrec(signal, tcConnectptr);
|
||||
|
|
Loading…
Reference in a new issue