Commit 980b7c98 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 afe484cb
...@@ -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