• Michael Widenius's avatar
    Fixed BUG#51763 Can't delete rows from MEMORY table with HASH key · 7042dd38
    Michael Widenius authored
    mysql-test/suite/heap/heap.result:
      Added test case
    mysql-test/suite/heap/heap.test:
      Added test case
    storage/heap/hp_delete.c:
      Fixed that we don't change order of keys for the current key when we delete them from the hash table.
      Fixed that 'current_hash_ptr' is correct after heap_delete_key().
      Don't "reset current_hash_ptr" on delete; This will improve time a lot for delete of rows when not all rows matches the search criteria.
    7042dd38
hp_delete.c 6.76 KB