1. 27 Oct, 2010 4 commits
    • Vasil Dimov's avatar
      Merge mysql-5.5-bugteam -> mysql-5.5-innodb · e3021d2a
      Vasil Dimov authored
      e3021d2a
    • Marko Mäkelä's avatar
      Bug #57707 InnoDB buf_page_t size has doubled on 32-bit systems · 26d81a2a
      Marko Mäkelä authored
      buf_page_t: Remove the buf_pool pointer. Add buf_pool_index:6 next to
      buf_fix_count:19 (it was buf_fix_count:25). This will limit the number
      of concurrent transactions to somewhere around 524,288.
      
      buf_pool_index(buf_pool): A new function to determine the index of a
      buffer pool in buf_pool_ptr[].
      
      buf_pool_ptr: Make this a dynamically allocated array instead of an
      array of pointers. Allocate the array in buf_pool_init() and free in
      buf_pool_free().
      
      buf_pool_free_instance(): No longer free the buf_pool object, as it is
      allocated from a big array.
      
      buf_pool_from_bpage(), buf_pool_from_block(): Move the definitions to
      the beginning of the files, because some compilers have (had) problems
      with forward definitions of inline functions. Calculate the buffer
      pool from buf_pool_index.
      
      buf_pool_from_array(): Add debug assertions for input validation.
      26d81a2a
    • Marko Mäkelä's avatar
      Bug #57730 Clean up references to InnoDB Plugin · 0fbc74a4
      Marko Mäkelä authored
      CMakeLists.txt: Remove the checks for mysql_storage_engine.cmake
      and MYSQL_VERSION_ID.
      
      ha_innodb.cc, ha_innodb.h: Remove the checks for MYSQL_VERSION_ID.
      0fbc74a4
    • Inaam Rana's avatar
      431e3ee7
  2. 26 Oct, 2010 4 commits
    • Inaam Rana's avatar
      Bug #57611 ibdata file and continuous growing undo logs · 1c3dc21f
      Inaam Rana authored
        rb://498
        
        Fix handling of update_undo_logs at trx commit. Previously, when
        rseg->update_undo_list grows beyond 500 the update_undo_logs were
        marked with state TRX_UNDO_TO_FREE which should have been
        TRX_UNDO_TO_PURGE.
        In 5.5 we don't need the heuristic as we support multiple rollback
        segments.
        
        Approved by: Sunny Bains
      1c3dc21f
    • Inaam Rana's avatar
      29d62e4c
    • Inaam Rana's avatar
      Bug #57611 ibdata file and continuous growing undo logs · 26738c28
      Inaam Rana authored
      rb://498
      
      Fix handling of update_undo_logs at trx commit. Previously, when
      rseg->update_undo_list grows beyond 500 the update_undo_logs were
      marked with state TRX_UNDO_TO_FREE which should have been
      TRX_UNDO_TO_PURGE.
      
      Approved by: Sunny Bains
      26738c28
    • unknown's avatar
      Bug#57720 - Windows Vista and possibly Windows 7 can return ERROR_TIMEOUT... · 840c602e
      unknown authored
      Bug#57720 - Windows Vista and possibly Windows 7 can return ERROR_TIMEOUT instead of WAIT_TIMEOUT from calls to SleepConditionVariableCS() which is used in os0sync.c; os_cond_wait_timeout() where it is mapped to sleep_condition_variable().   
      
      Consider ERROR_TIMEOUT to be a timeout just like WAIT_TIMEOUT.  
      
      In addition, test for EINTR as a possible return value from pthread_cond_timeout() in the posix section of os_cond_wait_timeout(), even though it is not supposed to be returned, but just to be safe.
      840c602e
  3. 25 Oct, 2010 1 commit
    • Georgi Kodinov's avatar
      Bug #57689: mysql_change_user() breaks user connection on older clients · ef7982fd
      Georgi Kodinov authored
      COM_CHANGE_USER was always handled like an implicit request to change the
      client plugin, so that the client can re-use the same code path for both normal 
      login and COM_CHANGE_USER. However this doesn't really work well with old 
      clients because they don't understand the request to change a client plugin.
      
      Fixed by implementing a special state in the code (and old client issuing 
      COM_CHANGE_USER). In this state the server parses the COM_CHANGE_USER 
      package and pushes back the password hash, the user name and the database 
      to the input stream in the same order that the native password server side plugin 
      expects. As a result it replies with an OK/FAIL just like the old server does thus
      making the new server compatible with older clients.
      
      No test case added, since it would requre an old client binary. Tested using 
      accounts with and without passwords. Tested with a correct and incorrect 
      password.
      ef7982fd
  4. 27 Oct, 2010 5 commits
  5. 26 Oct, 2010 5 commits
  6. 25 Oct, 2010 8 commits
  7. 23 Oct, 2010 2 commits
    • unknown's avatar
      Manual merge · 089ab763
      unknown authored
      089ab763
    • unknown's avatar
      Bug#27606 GRANT statement should be replicated with DEFINER information · 06c49d57
      unknown authored
      "Grantor" columns' data is lost when replicating mysql.tables_priv.
      Slave SQL thread used its default user ''@'' as the grantor of GRANT|REVOKE
      statements executing on it.
      
      In this patch, current user is put in query log event for all GRANT and REVOKE
      statement, SQL thread uses the user in query log event as grantor.
      
      
      mysql-test/suite/rpl/r/rpl_do_grant.result:
        Add test for this bug.
      mysql-test/suite/rpl/t/rpl_do_grant.test:
        Add test for this bug.
      sql/log_event.cc:
        Refactoring THD::current_user_used and related functions.
        current_user_used is used to judge if current user should be
        binlogged in query log event. So it is better to call it m_binlog_invoker.
        The related functions are renamed too.
      sql/sql_class.cc:
        Refactoring THD::current_user_used and related functions.
        current_user_used is used to judge if current user should be
        binlogged in query log event. So it is better to call it m_binlog_invoker.
        The related functions are renamed too.
      sql/sql_class.h:
        Refactoring THD::current_user_used and related functions.
        current_user_used is used to judge if current user should be
        binlogged in query log event. So it is better to call it m_binlog_invoker.
        The related functions are renamed too.
      sql/sql_parse.cc:
        Call binlog_invoker() for GRANT and REVOKE statements.
      06c49d57
  8. 22 Oct, 2010 3 commits
  9. 21 Oct, 2010 8 commits