Commit 39feca99 authored by pekka@mysql.com's avatar pekka@mysql.com

ndb - drop blob events: table is known so use it

parent a8d4eb8c
...@@ -3840,9 +3840,10 @@ NdbDictionaryImpl::dropBlobEvents(const NdbEventImpl& evnt) ...@@ -3840,9 +3840,10 @@ NdbDictionaryImpl::dropBlobEvents(const NdbEventImpl& evnt)
if (! c.getBlobType() || c.getPartSize() == 0) if (! c.getBlobType() || c.getPartSize() == 0)
continue; continue;
n--; n--;
char bename[MAX_TAB_NAME_SIZE]; NdbEventImpl* blob_evnt = getBlobEvent(evnt, i);
NdbBlob::getBlobEventName(bename, &evnt, &c); if (blob_evnt == NULL)
(void)dropEvent(bename); continue;
(void)dropEvent(*blob_evnt);
} }
} else { } else {
// loop over MAX_ATTRIBUTES_IN_TABLE ... // loop over MAX_ATTRIBUTES_IN_TABLE ...
......
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