Commit 980b7c98 authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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 ...