Skip to content
  • Lakshmi Narayanan Sreethar's avatar
    c2737b5c
    Bug#25882950 : CACHED INDEX IN NDBAPI'S DICT CACHE NOT CLEARED AFTER `CREATE TABLE` FAILURE · c2737b5c
    Lakshmi Narayanan Sreethar authored
    When a table with foreign keys are created, first the index is created
    and then during foreign key creation, those indexes are loaded into the
    ndbapi's dict cache. But when the `create table` ultimately fails due
    to some FK issue, those indexes in the cache are not invalidated. Due
    to this, any upcoming `create table` with some similarly named indexes
    as the previous failed DDL gets all mixed up and gives out inconsistent
    results. This patch invalidates the indexes in cache on failure.
    c2737b5c
    Bug#25882950 : CACHED INDEX IN NDBAPI'S DICT CACHE NOT CLEARED AFTER `CREATE TABLE` FAILURE
    Lakshmi Narayanan Sreethar authored
    When a table with foreign keys are created, first the index is created
    and then during foreign key creation, those indexes are loaded into the
    ndbapi's dict cache. But when the `create table` ultimately fails due
    to some FK issue, those indexes in the cache are not invalidated. Due
    to this, any upcoming `create table` with some similarly named indexes
    as the previous failed DDL gets all mixed up and gives out inconsistent
    results. This patch invalidates the indexes in cache on failure.
Loading