Commit dacddf51 authored by joreland@mysql.com's avatar joreland@mysql.com

Handle drop ordered index with table id > pool size

parent 23159226
...@@ -287,6 +287,22 @@ Dbtux::execDROP_TAB_REQ(Signal* signal) ...@@ -287,6 +287,22 @@ Dbtux::execDROP_TAB_REQ(Signal* signal)
const DropTabReq reqCopy = *(const DropTabReq*)signal->getDataPtr(); const DropTabReq reqCopy = *(const DropTabReq*)signal->getDataPtr();
const DropTabReq* const req = &reqCopy; const DropTabReq* const req = &reqCopy;
IndexPtr indexPtr; IndexPtr indexPtr;
Uint32 tableId = req->tableId;
Uint32 senderRef = req->senderRef;
Uint32 senderData = req->senderData;
if (tableId >= c_indexPool.getSize()) {
jam();
// reply to sender
DropTabConf* const conf = (DropTabConf*)signal->getDataPtrSend();
conf->senderRef = reference();
conf->senderData = senderData;
conf->tableId = tableId;
sendSignal(senderRef, GSN_DROP_TAB_CONF,
signal, DropTabConf::SignalLength, JBB);
return;
}
c_indexPool.getPtr(indexPtr, req->tableId); c_indexPool.getPtr(indexPtr, req->tableId);
// drop works regardless of index state // drop works regardless of index state
#ifdef VM_TRACE #ifdef VM_TRACE
......
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