• inaam's avatar
    branches/5.1 issue# 4 · f5c79c03
    inaam authored
    Fixed a timing hole where a thread dropping an index can free the
    in-memory index struct while another thread is still using
    that structure to remove entries from adaptive hash index belonging
    to one of the pages that belongs to the index being dropped.
    
    The fix is to have a reference counter in the index struct and to
    wait for this counter to drop to zero beforing freeing the struct.
    
    Reviewed by: Heikki
    f5c79c03
dict0dict.c 107 KB