Commit 8e6e313c authored by unknown's avatar unknown

bug#33142: access after free() for blob replication and online alter table

parent 481385de
...@@ -792,6 +792,18 @@ NdbEventOperationImpl::receive_event() ...@@ -792,6 +792,18 @@ NdbEventOperationImpl::receive_event()
p = p->next(); p = p->next();
} }
} }
// change the blobHandle's to refer to the new table object.
NdbBlob *p = theBlobList;
while (p)
{
int no = p->getColumn()->getColumnNo();
NdbColumnImpl *tAttrInfo = at->getColumn(no);
DBUG_PRINT("info", ("blob_handle: 0x%lx "
"switching column impl 0x%lx -> 0x%lx",
(long) p, (long) p->theColumn, (long) tAttrInfo));
p->theColumn = tAttrInfo;
p = p->next();
}
if (tmp_table_impl) if (tmp_table_impl)
delete tmp_table_impl; delete tmp_table_impl;
} }
......
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