• unknown's avatar
    Applied innodb-5.1-ss1381 snapshot · f034778e
    unknown authored
    Bug #27381: InnoDB exits when attempting to rename table to non-existant database
      Fix Bug#27381 by calling os_file_handle_error_no_exit() instead of
      os_file_handle_error().
    
    
    mysql-test/t/innodb.test:
      Applied innodb-5.1-ss1381 snapshot
      
      Revision r1373:
      Port r1372 from branches/5.0: Merge a change from MySQL AB, and remove
      the innodb_gis test case.
      
      ChangeSet
        2007/02/19 13:57:06+03:00 kaa@polly.local
        Bug#18743: Several test cases fails if "classic" configuration in 5.0
        The problem happened because those tests were using "cp932" and "ucs2"
        without checking whether these character sets are available.
        This fix moves test parts to make character set specific parts be
        tested only if they are:
        - some parts were moved to "ctype_ucs.test" and "ctype_cp932.test"
        - some parts were moved to the newly added tests "innodb-ucs2.test",
        "mysqlbinglog-cp932.test" and "sp-ucs2.test"
      
      mysql-test/t/innodb.test
        2007/02/19 13:57:02+03:00 kaa@polly.local +0 -222
        Moved ucs2-specific test cases to innodb-ucs2.test
    storage/innobase/Makefile.am:
      Applied innodb-5.1-ss1381 snapshot
      
      Revision r1353:
      Makefile.am: EXTRA_DIST: Add the grammar source files to the
      source distribution of MySQL.
    storage/innobase/dict/dict0dict.c:
      Applied innodb-5.1-ss1381 snapshot
      
      Revision r1350:
      Lock the data dictionary during rollback.  This removes the rare
      debug assertion failure ut_ad(mutex_own(&(dict_sys->mutex))) in
      dict_table_get_on_id() after the rollback following crash recovery.
    storage/innobase/handler/ha_innodb.cc:
      Applied innodb-5.1-ss1381 snapshot
      
      Revision r1377:
      Add static qualifiers to some symbols in ha_innodb.cc that are not
      referenced from other modules.
      
      
      Revision r1380:
      Remove ha_innobase::last_query_id and references to thd->query_id.
      
      MySQL calls external_lock at the beginning and end of a statement
      when it is not calling start_stmt or commit or rollback.  Thus,
      statement boundaries can be (and are already) detected without
      monitoring thd->query_id.
      
      The function innobase_commit() seemingly lacks the call to
      innobase_release_stat_resources(), which should be called at
      the end of every SQL statement.  The call was replaced by
      equivalent statements by Vadim Tkachenko when he implemented
      innodb_commit_concurrency in MySQL 5.0:
      
      http://mysql.bkbits.net:8080/mysql-5.0/?PAGE=patch&REV=1.1886.70.1
      
      
      Revision r1355:
      class ha_innobase: Replace statistic_increment() with ha_statistic_increment().
      
      ha_innobase::change_active_index(): Do not call current_thd unless
      UNIV_DEBUG is defined.
      
      
      Revision r1369:
      Merge a change from MySQL AB:
      
      ChangeSet@1.2409.1.83  2007-03-06 10:36:15-07:00  tsmith@hindu.god
      Bug #26598: Create variable to allow turning off of statistic gathering
      on metadata commands
      
      Add innodb_stats_on_metadata option, which enables gathering
      index statistics when processing metadata commands such as
      SHOW TABLE STATUS.  Default behavior of the server does not
      change (this option is enabled by default).
      
      
      Revision r1342:
      Minor cleanup in ha_innodb.cc.
      
      Remove the unused constants HA_INNOBASE_ROWS_IN_TABLE and
      HA_INNOBASE_RANGE_COUNT.  Declare innobase_active_counter static.
      
      
      Revision r1381:
      innobase_commit(): Correct the comments and formatting that were broken when
      innodb_commit_concurrency was implemented.
      
      
      Revision r1360:
      Minor cleanup.
      
      innobase_query_caching_of_table_permitted(): Make static.
      
      ha_innobase::register_query_cache_table(): Move the function
      definition from ha_innodb.h to ha_innodb.cc.  Add comments.
    storage/innobase/handler/ha_innodb.h:
      Applied innodb-5.1-ss1381 snapshot
      
      Revision r1377:
      Add static qualifiers to some symbols in ha_innodb.cc that are not
      referenced from other modules.
      
      
      Revision r1380:
      Remove ha_innobase::last_query_id and references to thd->query_id.
      
      MySQL calls external_lock at the beginning and end of a statement
      when it is not calling start_stmt or commit or rollback.  Thus,
      statement boundaries can be (and are already) detected without
      monitoring thd->query_id.
      
      The function innobase_commit() seemingly lacks the call to
      innobase_release_stat_resources(), which should be called at
      the end of every SQL statement.  The call was replaced by
      equivalent statements by Vadim Tkachenko when he implemented
      innodb_commit_concurrency in MySQL 5.0:
      
      http://mysql.bkbits.net:8080/mysql-5.0/?PAGE=patch&REV=1.1886.70.1
      
      
      Revision r1369:
      Merge a change from MySQL AB:
      
      ChangeSet@1.2409.1.83  2007-03-06 10:36:15-07:00  tsmith@hindu.god
      Bug #26598: Create variable to allow turning off of statistic gathering
      on metadata commands
      
      Add innodb_stats_on_metadata option, which enables gathering
      index statistics when processing metadata commands such as
      SHOW TABLE STATUS.  Default behavior of the server does not
      change (this option is enabled by default).
      
      
      Revision r1360:
      Minor cleanup.
      
      innobase_query_caching_of_table_permitted(): Make static.
      
      ha_innobase::register_query_cache_table(): Move the function
      definition from ha_innodb.h to ha_innodb.cc.  Add comments.
    storage/innobase/include/trx0trx.h:
      Applied innodb-5.1-ss1381 snapshot
      
      Revision r1344:
      Rename the Boolean field trx->type to trx->is_purge
      and remove the constants TRX_USER and TRX_PURGE.
      
      
      Revision r1343:
      trx_sig_struct: Remove state.  It is always assigned to TRX_SIG_WAITING
      and never tested.
    storage/innobase/os/os0file.c:
      Applied innodb-5.1-ss1381 snapshot
      
      Revision r1352:
      Fix typo in comment in os/os0file.c
      
      Approved by:	heikki
      
      
      
      Revision r1366:
      Fix Bug#27381 by calling os_file_handle_error_no_exit() instead of
      os_file_handle_error().
      
      Approved by:	Heikki
    storage/innobase/row/row0undo.c:
      Applied innodb-5.1-ss1381 snapshot
      
      Revision r1350:
      Lock the data dictionary during rollback.  This removes the rare
      debug assertion failure ut_ad(mutex_own(&(dict_sys->mutex))) in
      dict_table_get_on_id() after the rollback following crash recovery.
    storage/innobase/trx/trx0purge.c:
      Applied innodb-5.1-ss1381 snapshot
      
      Revision r1344:
      Rename the Boolean field trx->type to trx->is_purge
      and remove the constants TRX_USER and TRX_PURGE.
    storage/innobase/trx/trx0trx.c:
      Applied innodb-5.1-ss1381 snapshot
      
      Revision r1344:
      Rename the Boolean field trx->type to trx->is_purge
      and remove the constants TRX_USER and TRX_PURGE.
      
      
      Revision r1343:
      trx_sig_struct: Remove state.  It is always assigned to TRX_SIG_WAITING
      and never tested.
    f034778e
os0file.c 103 KB