Below is the list of changes that have just been committed into a local
5.1 repository of tomas. When tomas does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-12-11 16:04:33+01:00, tomas@stripped +1 -0
bug#33142: access after free() for blob replication and online alter table
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp@stripped, 2007-12-11 16:04:31+01:00, tomas@stripped +12 -0
bug#33142: access after free() for blob replication and online alter table
diff -Nrup a/storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp b/storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
--- a/storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp 2007-06-11 17:50:36 +02:00
+++ b/storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp 2007-12-11 16:04:31 +01:00
@@ -792,6 +792,18 @@ NdbEventOperationImpl::receive_event()
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)
delete tmp_table_impl;
}
| Thread |
|---|
| • bk commit into 5.1 tree (tomas:1.2689) BUG#33142 | tomas | 11 Dec |