• Aditya A's avatar
    Bug#13548704 ALGORITHM USED FOR DROPPING PARTITIONED TABLE CAN LEAD · 5f3c0a45
    Aditya A authored
                 TO INCONSISTENCY 
    
    PROBLEM
    --------
    When we drop a partitoned table , we first gather the
    information about partitions in the table from the 
    table_name.par file and store it in an internal data 
    structure.Then we delete this file and the data in 
    the table. If the server crashes  after deleting the
    file,then after recovering we cannot access the table
    .Even we cannot drop the table ,because drop algorithm
    requires par file to read the partition information.
    
    
    FIX
    ---
    1. We move the part of deleting par file after deleting 
       all the table data from the storage egine.
    2. During drop operation if we detect that the par 
       file is missing then we delete the .frm file,since 
       there is no way of recovering without par file.
      
    [Approved by Mattias rb#2576 ]   
    5f3c0a45
ha_partition.h 46.7 KB