mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Bug#8051 - ndb
Make sure to ship error code in system error signal
This commit is contained in:
parent
aea5775c56
commit
7a3767fc5e
1 changed files with 4 additions and 0 deletions
|
|
@ -2976,6 +2976,8 @@ void Dbdih::execCOPY_FRAGREF(Signal* signal)
|
||||||
SystemError * const sysErr = (SystemError*)&signal->theData[0];
|
SystemError * const sysErr = (SystemError*)&signal->theData[0];
|
||||||
sysErr->errorCode = SystemError::CopyFragRefError;
|
sysErr->errorCode = SystemError::CopyFragRefError;
|
||||||
sysErr->errorRef = reference();
|
sysErr->errorRef = reference();
|
||||||
|
sysErr->data1 = errorCode;
|
||||||
|
sysErr->data2 = 0;
|
||||||
sendSignal(cntrRef, GSN_SYSTEM_ERROR, signal,
|
sendSignal(cntrRef, GSN_SYSTEM_ERROR, signal,
|
||||||
SystemError::SignalLength, JBB);
|
SystemError::SignalLength, JBB);
|
||||||
return;
|
return;
|
||||||
|
|
@ -4492,6 +4494,8 @@ void Dbdih::handleTakeOverNewMaster(Signal* signal, Uint32 takeOverPtrI)
|
||||||
SystemError * const sysErr = (SystemError*)&signal->theData[0];
|
SystemError * const sysErr = (SystemError*)&signal->theData[0];
|
||||||
sysErr->errorCode = SystemError::CopyFragRefError;
|
sysErr->errorCode = SystemError::CopyFragRefError;
|
||||||
sysErr->errorRef = reference();
|
sysErr->errorRef = reference();
|
||||||
|
signal->data1= 0;
|
||||||
|
signal->data2= __LINE__;
|
||||||
sendSignal(cntrRef, GSN_SYSTEM_ERROR, signal,
|
sendSignal(cntrRef, GSN_SYSTEM_ERROR, signal,
|
||||||
SystemError::SignalLength, JBB);
|
SystemError::SignalLength, JBB);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue