Commit 13c1269d authored by unknown's avatar unknown

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


storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
  dropBlobEvents knows which table, so use it to avoid search by name
parent c36a12e5
......@@ -3840,9 +3840,10 @@ NdbDictionaryImpl::dropBlobEvents(const NdbEventImpl& evnt)
if (! c.getBlobType() || c.getPartSize() == 0)
continue;
n--;
char bename[MAX_TAB_NAME_SIZE];
NdbBlob::getBlobEventName(bename, &evnt, &c);
(void)dropEvent(bename);
NdbEventImpl* blob_evnt = getBlobEvent(evnt, i);
if (blob_evnt == NULL)
continue;
(void)dropEvent(*blob_evnt);
}
} else {
// 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