1. 14 May, 2007 1 commit
  2. 11 May, 2007 3 commits
    • vasil's avatar
      Convert innobase_buffer_pool_size and innobase_log_file_size types from · 77e0d81d
      vasil authored
      longlong to long long because MYSQL_SYSVAR_LONGLONG marco expects long long
      type.
      
      Also change
      ((ulint)innobase_buffer_pool_size) / 1024
      to
      (ulint)(innobase_buffer_pool_size / 1024)
      and remove comment which is no longer true.
      
      Provided that innobase_buffer_pool_size is always 64bits these statements
      are equivalent if ulint is 64 bit (well it will screw up if
      innobase_buffer_pool_size is negative). And if ulint is 32 bit the later
      variant gives a little more chance that the value will fit.
      
      Approved by:	Heikki
      77e0d81d
    • vasil's avatar
      Fix typo in comment. · a43cc795
      vasil authored
      a43cc795
    • marko's avatar
      Add #include <ctype.h>. Apparently, this header is no longer included by · 182a5271
      marko authored
      the common headers.  This may be related to WL#2936
      (pluggable storage engines).
      182a5271
  3. 10 May, 2007 2 commits
    • marko's avatar
      thd_to_trx(), check_trx_exists(): Remove the handlerton parameter. It is a · a031d885
      marko authored
      singleton object whose address is stored into innodb_hton_ptr.
      a031d885
    • marko's avatar
      Make InnoDB pluggable. That is, merge the modifications from MySQL WL#2936 · 455e07b6
      marko authored
      and adapt some things.
      
      Note that ha_innodb.cc depends on mysql_tmpfile() being declared in
      <mysql/plugin.h>.  Until the function is declared there, you can
      uncomment the buggy definition of mysql_tmpfile in ha_innodb.cc.
      
      Remove storage/innobase/*/Makefile.am.  The whole compilation is driven by
      storage/innobase/Makefile.am and storage/innobase/plug.in.
      
      plug.in: Declare InnoDB as a dynamic plugin.
      
      ha_innodb.h: Remove the declarations of many global variables.  The variables
      are no longer directly referenced outside of storage/innobase.
      
      trx_t: Add the field trx->duplicates.
      
      trx_create(): Initialize the fields trx->active_trans and trx->duplicates.
      
      innobase_query_is_update(): Remove.  Consult trx->duplicates instead.
      455e07b6
  4. 09 May, 2007 1 commit
  5. 08 May, 2007 3 commits
  6. 03 May, 2007 1 commit
  7. 27 Apr, 2007 1 commit
  8. 25 Apr, 2007 1 commit
  9. 23 Apr, 2007 1 commit
  10. 20 Apr, 2007 3 commits
  11. 19 Apr, 2007 3 commits
    • marko's avatar
      ha_innodb.cc: Remove ../storage/innobase/include/ prefix from #include · b0483093
      marko authored
      directives.  This could and should have been done when sql/ha_innodb.cc
      was renamed to storage/innobase/handler/ha_innodb.cc.
      b0483093
    • marko's avatar
      Merge a change from MySQL AB: · a8db2854
      marko authored
      ChangeSet@2007-04-03 16:13:27+05:00, gluh@mysql.com
        Bug#21432 Database/Table name limited to 64 bytes, not chars,
        problems with multi-byte
      
      ==== storage/innobase/handler/ha_innodb.cc ====
      2007-04-03 16:13:25+05:00, gluh@mysql.com +2 -2
        removed unnecessary multiplication
      a8db2854
    • marko's avatar
      Merge a change from MySQL AB, to fix a mistake made · 7ad2c906
      marko authored
      in Makefile.am in r1353 by marko (shame on him):
      
      ChangeSet@2007-03-30 06:57:58+02:00, msvensson@pilot.blaudden 
        Add missing \ causing CMakelists.txt etc not to be included in dist
      7ad2c906
  12. 18 Apr, 2007 1 commit
  13. 16 Apr, 2007 1 commit
    • vasil's avatar
      Potential fix for Bug#25645: · 0bc5ed33
      vasil authored
      "Move innobase_release_stat_resources(trx) outside the 'if' in
      ha_innobase::external_lock(). That would add more safety that whatever
      MySQL does at a query end, there would be no risk of a hang on the btr
      search latch."
      
      Also call innobase_release_temporary_latches() in the beginning of
      ha_innobase::close().
      
      Approved by:	Heikki
      0bc5ed33
  14. 12 Apr, 2007 1 commit
  15. 11 Apr, 2007 6 commits
  16. 10 Apr, 2007 2 commits
  17. 02 Apr, 2007 1 commit
  18. 29 Mar, 2007 2 commits
  19. 27 Mar, 2007 6 commits
    • marko's avatar
      innobase_commit(): Correct the comments and formatting that were broken when · 278c29e5
      marko authored
      innodb_commit_concurrency was implemented.
      278c29e5
    • marko's avatar
      Remove ha_innobase::last_query_id and references to thd->query_id. · 4f1615b7
      marko authored
      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
      4f1615b7
    • marko's avatar
      Add static qualifiers to some symbols in ha_innodb.cc that are not · 0f505f92
      marko authored
      referenced from other modules.
      0f505f92
    • marko's avatar
      Merge a change from MySQL AB: · 28f6d0de
      marko authored
      ChangeSet
        2007/03/20 10:22:15-04:00 iggy@recycle.(none) 
        Post Merge Fix.
      
      storage/innobase/CMakeLists.txt
        2007/03/20 10:22:13-04:00 iggy@recycle.(none) +2 -2
        Post Merge Fix.
      28f6d0de
    • marko's avatar
      Merge a change from MySQL AB: · 0991e5bb
      marko authored
      ChangeSet
        2007/02/14 22:06:41-08:00 igor@olga.mysql.com 
        Fixed bug #25971: indexes on text columns were ignored when ref accesses
        were evaluated.
        According to the new rules for string comparison partial indexes on text
        columns can be used in the same cases when partial indexes on varchar
        columns can be used.
      
      mysql-test/r/innodb.result
        2007/02/14 22:06:39-08:00 igor@olga.mysql.com +1 -1
        Adjusted results after the fix for bug #25971.
      0991e5bb
    • marko's avatar
      Merge a change from MySQL AB: · 79dea753
      marko authored
      ChangeSet
        2007/02/15 15:39:03+01:00 guilhem@gbichot3.local 
        Fix for BUG#25507 "multi-row insert delayed + auto increment causes
        duplicate key entries on slave" (two concurrrent connections doing
        multi-row INSERT DELAYED to insert into an auto_increment column,
        caused replication slave to stop with "duplicate key error" (and
        binlog was wrong)), and BUG#26116 "If multi-row INSERT
        DELAYED has errors, statement-based binlogging breaks" (the binlog
        was not accounting for all rows inserted, or slave could stop).
        The fix is that: if (statement-based) binlogging is on, a multi-row
        INSERT DELAYED is silently converted to a non-delayed INSERT.
        Note: it is not possible to test BUG#25507 in 5.0 (requires mysqlslap),
        so it is tested only in the changeset for 5.1. However, BUG#26116
        is tested here, and the fix for BUG#25507 is the same code change.
      
      mysql-test/r/innodb-replace.result
        2007/02/15 15:39:01+01:00 guilhem@gbichot3.local +2 -2
        result update
      
      mysql-test/t/innodb-replace.test
        2007/02/15 15:39:01+01:00 guilhem@gbichot3.local +2 -2
        now that multi-row delayed inserts are converted to normal inserts
        if the statement-based binlog is enabled,
        no error is issued even if this engine does not support INSERT DELAYED,
        as the insert does not go through the INSERT DELAYED code.
        To preserve the goal of this test, we change the statements to single-
        row inserts.
      79dea753