Commit 8e8a93df authored by unknown's avatar unknown

Fix for bug#4650 Scan does not report timeout of owning transaction

parent 49d6b187
...@@ -8502,6 +8502,13 @@ void Dbtc::execSCAN_TABREQ(Signal* signal) ...@@ -8502,6 +8502,13 @@ void Dbtc::execSCAN_TABREQ(Signal* signal)
if ((transid1 == buddyApiPtr.p->transid[0]) && if ((transid1 == buddyApiPtr.p->transid[0]) &&
(transid2 == buddyApiPtr.p->transid[1])) { (transid2 == buddyApiPtr.p->transid[1])) {
jam(); jam();
if (buddyApiPtr.p->apiConnectstate == CS_ABORTING) {
// transaction has timed out
jam();
errCode = ZTIME_OUT_ERROR;
goto SCAN_TAB_error;
}//if
currSavePointId = buddyApiPtr.p->currSavePointId; currSavePointId = buddyApiPtr.p->currSavePointId;
buddyApiPtr.p->currSavePointId++; buddyApiPtr.p->currSavePointId++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment