• inaam's avatar
    branches/zip: Merge 2524:2537 from branches/5.1: · 208ba019
    inaam authored
      ------------------------------------------------------------------------
      r2537 | inaam | 2008-07-15 20:46:03 +0300 (Tue, 15 Jul 2008) | 12 lines
      
      branches/5.1   issue# 4
      
      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
      
      ------------------------------------------------------------------------
    208ba019
btr0sea.c 45.5 KB