bug#24470 MySQL Servers crashes during creating new tables with blob column: fix of error handling at resource shortage

This commit is contained in:
mskold/marty@mysql.com/linux.site 2006-11-27 11:49:43 +01:00
parent a4ae99533c
commit 9f572b7d4b

View file

@ -2299,7 +2299,7 @@ NdbDictionaryImpl::createTable(NdbTableImpl &t)
// blob tables - use "t2" to get values set by kernel
if (t2->m_noOfBlobs != 0 && createBlobTables(*t2) != 0) {
int save_code = m_error.code;
(void)dropTable(*t2);
(void)dropTableGlobal(*t2);
m_error.code = save_code;
delete t2;
DBUG_RETURN(-1);