1. 12 Jul, 2004 4 commits
    • unknown's avatar
      InnoDB: LOCK TABLES clean-up, part 2 · ed4e47a6
      unknown authored
      
      innobase/lock/lock0lock.c:
        Decrement n_lock_table_exp in lock_table_dequeue(), not elsewhere
      ed4e47a6
    • unknown's avatar
      InnoDB: LOCK TABLE clean-up · 922fbbab
      unknown authored
      
      innobase/include/lock0lock.h:
        Improve comments regarding LOCK_TABLE_EXP
      innobase/include/row0mysql.h:
        Rename row_unlock_table_for_mysql() to row_unlock_tables_for_mysql()
        and improve its comment
      innobase/include/trx0trx.h:
        Rename n_tables_locked to n_lock_table_exp
      innobase/lock/lock0lock.c:
        Rename n_tables_locked to n_lock_table_exp
        Increment n_lock_table_exp already in lock_table_create()
        Replace some ut_ad() assertions with ut_a()
      innobase/row/row0mysql.c:
        Rename n_tables_locked to n_lock_table_exp
        Rename row_unlock_table_for_mysql() to row_unlock_tables_for_mysql()
        and improve its comment
      innobase/trx/trx0trx.c:
        Rename n_tables_locked to n_lock_table_exp
      sql/ha_innodb.cc:
        Rename n_tables_locked to n_lock_table_exp
        Rename row_unlock_table_for_mysql() to row_unlock_tables_for_mysql()
      922fbbab
    • unknown's avatar
      InnoDB: Increment the lock wait watchdog timeout during CHECK TABLE · 994c762f
      unknown authored
      (Bug #2694)
      
      
      innobase/include/srv0srv.h:
        Add srv_fatal_semaphore_wait_threshold
      innobase/include/sync0arr.h:
        Improve comment of sync_array_print_long_waits()
      innobase/row/row0mysql.c:
        Lengthen the srv_fatal_semaphore_wait_threshold by 2 hours during
        CHECK TABLE
      innobase/srv/srv0srv.c:
        Add srv_fatal_semaphore_wait_threshold
      innobase/sync/sync0arr.c:
        Improve comment of sync_array_print_long_waits().
        Replace the fixed timeout of 600 seconds with
        srv_fatal_semaphore_wait_threshold.
      994c762f
    • unknown's avatar
      srv0start.c: · f9f7608e
      unknown authored
        innobase_start_or_create_for_mysql(): Rename innodb.status.<pid>
        to innodb_status.<pid> to avoid problems on VMS
      
      
      innobase/srv/srv0start.c:
        innobase_start_or_create_for_mysql(): Rename innodb.status.<pid>
        to innodb_status.<pid> to avoid problems on VMS
      f9f7608e
  2. 10 Jul, 2004 2 commits
  3. 09 Jul, 2004 1 commit
    • unknown's avatar
      mysqlhotcopy: · a85115a3
      unknown authored
        fix MYI copying with scp
        safer tempfile creation
      
      
      scripts/mysqlhotcopy.sh:
        fix MYI copying with scp
        safer tempfile creation
      a85115a3
  4. 08 Jul, 2004 7 commits
  5. 07 Jul, 2004 3 commits
  6. 05 Jul, 2004 2 commits
    • unknown's avatar
      my_lib.c: · 416fd822
      unknown authored
        more accurate comment
      
      
      mysys/my_lib.c:
        more accurate comment
      416fd822
    • unknown's avatar
      Windows-specific: · e6ff5f23
      unknown authored
      Fix for BUG#4375 "Windows specific directories are copied during
      replication": in the Windows version of my_dir(), do not show hidden
      or system files which Windows sometimes creates in the root directory
      of drive (like RECYCLER and SYSTEM VOLUME INFORMATION directories) (so
      this problem showed up only when the datadir was the root dir of a
      drive).
      This will make SHOW DATABASES display better, and will do no harm to
      MySQL. For example, DROP DATABASE will not miss some files, as MySQL
      creates no hidden or system files.
      
      
      mysys/my_lib.c:
        In my_dir(), do not show hidden or system files
        which Windows sometimes creates.
      e6ff5f23
  7. 02 Jul, 2004 1 commit
    • unknown's avatar
      Fixing a bug in mysqltest.c: · 844c4973
      unknown authored
      if a command has a comment at the end of line, like:
      error 2002 ; # this is error 2002
      then the parsing of comment should not make mysqltest
      forget about the value of expected error.
      Reason it forgot it (so the next query caused the test to fail)
      is that internally the above line is 2 queries.
      
      
      
      client/mysqltest.c:
        if a command has a comment at the end of line, like:
        error 2002 ; # this is error 2002
        then the parsing of comment should not make mysqltest
        forget about the value of expected error.
      844c4973
  8. 01 Jul, 2004 1 commit
  9. 30 Jun, 2004 2 commits
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 · 584be1f9
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.0
      
      584be1f9
    • unknown's avatar
      Fix for BUG#4326 "Replicated LOAD DATA INFILE show nothing in · 3dca1b36
      unknown authored
      processlist on slave":
      we now report in SHOW PROCESSLIST that we are writing to the temp
      files or loading the table. When we are writing to the tmp file:
      | 3  | system user |                 |    | Connect | 6    | Making temp file /tmp/SQL_LOAD-2-1-2.data | 
      and when we are actually loading the .data temp file into the table:
      | 3  | system user |                 | test | Connect | 2    | | LOAD DATA INFILE '/tmp/SQL_LOAD-2-1-2.data' INTO TABLE `t` <...> |
      
      
      sql/log_event.cc:
        Replication of LOAD DATA INFILE:
        we now report in SHOW PROCESSLIST that we are creating
        the temp files or loading the table.
        Plus removing a line which had a comment "should not be needed"
        and a guarding assertion which we have never heard fail (and logic
        says it should not fail).
      3dca1b36
  10. 29 Jun, 2004 1 commit
    • unknown's avatar
      my_md5sum: · 6239e522
      unknown authored
        Added code to use locally installed perl modules first
      
      
      Build-tools/my_md5sum:
        Added code to use locally installed perl modules first
      6239e522
  11. 28 Jun, 2004 1 commit
  12. 27 Jun, 2004 2 commits
  13. 25 Jun, 2004 7 commits
  14. 24 Jun, 2004 6 commits
    • unknown's avatar
      parameter of my_yyoverflow made independed from YYSIZE_T (BUG#4204) · aad5e13c
      unknown authored
      
      sql/sql_parse.cc:
        parameter of my_yyoverflow made independed from YYSIZE_T
      sql/sql_yacc.yy:
        parameter of my_yyoverflow made independed from YYSIZE_T
      aad5e13c
    • unknown's avatar
      Merge here.mwagner.org:/Volumes/BK/mysql-4.0 · 4737bccf
      unknown authored
      into here.mwagner.org:/Volumes/BK/mysql-4.0-work
      
      4737bccf
    • unknown's avatar
      logger.pm, Bootstrap: · 0af47515
      unknown authored
        Updates for output enhanced Bootstrap
      
      
      Build-tools/Bootstrap:
        Updates for output enhanced Bootstrap
      Build-tools/logger.pm:
        Updates for output enhanced Bootstrap
      0af47515
    • unknown's avatar
      bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock. · b8c85bc6
      unknown authored
      Redesigned the handler close functions so that they are usable
      at different places where waiting for closing tables is done.
      
      
      mysql-test/r/flush_table.result:
        bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock.
        Added the test results.
      mysql-test/t/flush_table.test:
        bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock.
        Activated old test case.
        Added new test cases.
      sql/mysql_priv.h:
        bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock.
        Made mysql_ha_close() more flexible.
        Removed mysql_ha_closeall(), which closed only one table despite its name.
        Added mysql_ha_close_list(), which closes the complete list or all tables and does not lock.
        Removed a duplicate declaration.
      sql/sql_base.cc:
        bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock.
        Added proper close calls before some wait points to avoid deadlocks
        or infinite loops.
      sql/sql_handler.cc:
        bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock.
        Redesigned the internal function find_table_ptr_by_name().
        It can now suppress locking and tells if the requested table
        has been flushed by itself.
        Extended mysql_ha_close() so that it can now suppres locking
        and error reporting. That way it can be used at more places and the
        old function mysql_ha_closeall() is now obsolete.
        Added a new function mysql_ha_close_list() which closes a whole list
        of HANDLER tables or all HANDLER tables, if the list is NULL.
        Furthermore is can close all 'old' (marked for flush) HANDLER tables.
      sql/sql_table.cc:
        bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock.
        Replaced the obsolte mysql_ha_closeall() by the new mysql_ha_close().
      b8c85bc6
    • unknown's avatar
      bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash. · 4ea8ef98
      unknown authored
      Added put_length() to get_length() and unpack_key() to pack_key().
      Keys were packed with the minimum size of the length field for the key part and 
      unpacked with length size of the base column. 
      For the purpose of optimal key packing we have the method pack_key(), while rows are 
      packed with pack(). Now keys are unpacked with unpack_key() and no longer with 
      unpack() which is used for rows.
      
      
      mysql-test/r/bdb.result:
        bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash.
        Added the test case results.
      mysql-test/t/bdb.test:
        bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash.
        Added the test case.
      sql/field.cc:
        bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash.
        Added put_length() to get_length() and unpack_key() to pack_key().
        Keys were packed with the minimum size of the length field for the key part and 
        unpacked with length size of the base column. 
        For the purpose of optimal key packing we have the method pack_key(), while rows are packed 
        with pack(). Now keys are unpacked with unpack_key() and no longer with unpack() which is 
        used for rows.
      sql/field.h:
        bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash.
        Added put_length() to get_length() and unpack_key() to pack_key().
        The default implementation simply calls unpack() for those field types that don't need 
        a special key unpacking.
      sql/ha_berkeley.cc:
        bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash.
        Now keys are unpacked with unpack_key() and no longer with unpack() which is used for rows.
        For most field types, however, this simply calls unpack().
      4ea8ef98
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-4.0 · 4ccfeb7c
      unknown authored
      into mysql.com:/home/mydev/mysql-4.0-bug2688
      
      4ccfeb7c