• unknown's avatar
    This patch removes unnecessary lock from the supremum record, takes · dbe27392
    unknown authored
    X-locks on duplicates also on LOAD DATA...REPLACE clause and
    fixes a bug #6086 adding --disable_warnings and --enable_warnings around
    the create table clauses in ctype_utf8 tests for InnoDB.
    
    
    innobase/dict/dict0dict.c:
      Remove static.
    innobase/include/dict0dict.h:
      Add prototype for a function dict_scan_to
    innobase/row/row0ins.c:
      Add support for a LOAD DATA INFILE 'xxx' REPLACE INTO TABLE x. We should
      take X-locks on both REPLACE and LOAD DATA...REPLACE queries to duplicate
      records.
    innobase/row/row0sel.c:
      If innodb_locks_unsafe_for_binlog options is used we do not lock
      gaps. Supremum record is really a dummy record i.e. gap, therefore 
      we do set locks there.
    mysql-test/t/ctype_utf8.test:
      Fix bug #6086: Add --disable_warnings and --enable_warnings around the 
      create table where engine=innodb.
    dbe27392
row0sel.c 95.8 KB