• svoj@april.(none)'s avatar
    BUG#20256 - LOCK WRITE - MyISAM · 44f167ee
    svoj@april.(none) authored
    Only MyISAM tables locked with LOCK TABLES ... WRITE were affected.
    
    A query that is optimized with index_merge doesn't reflect rows
    inserted within LOCK TABLES.
    
    MyISAM doesn't flush a state within LOCK TABLES. index_merge
    optimization creates a copy of the handler, which thus gets
    outdated MyISAM state.
    
    New handler->clone() method is introduced to fix this problem.
    For non-MyISAM storage engines it allocates a handler and opens
    it with ha_open(). For MyISAM it additionally copies MyISAM state
    pointer to cloned handler.
    44f167ee
opt_range.cc 287 KB