1. 06 Nov, 2013 1 commit
    • Sergey Vojtovich's avatar
      MDEV-5205 - MariaDB does not start if more than 128 cpu's are available · a588de1f
      Sergey Vojtovich authored
      An addition to fix for MDEV-5205, fixes server crash on shutdown.
      
      Thread groups are destroyed asynchronously, that is kill server
      thread sends shutdown request to all thread groups without waiting
      for compeltion.
      
      It means all_groups array must not be freed until all thread groups
      are down. This patch suggests that all_groups is freed when last
      thread group is destroyed.
      
      Note 1: threadpool code doesn't surround atomic ops with atomic locks,
      thus no locks for shutdown_group_count.
      Note 2: this patch preserves old behaviour, but we may need to wait
      until all thread groups are down before returning from tp_end().
      a588de1f
  2. 05 Nov, 2013 3 commits
    • Michael Widenius's avatar
      Added usage of handler error names to mysqltest · 6cc9f4ac
      Michael Widenius authored
      
      include/CMakeLists.txt:
        Added handler_ername.h
      include/handler_ername.h:
        Names of handler error messages
      mysql-test/extra/binlog_tests/binlog.test:
        Test using handler error names
      mysql-test/r/mysqltest.result:
        Update for new error message
      mysql-test/t/auto_increment.test:
        Test using handler error names
      mysql-test/t/auto_increment_ranges.inc:
        Test using handler error names
      mysql-test/t/replace.test:
        Test using handler error names
      6cc9f4ac
    • Michael Widenius's avatar
      Fixed core dump when doing "SET GLOBAL innodb_buffer_pool_evict='uncompressed'" · afa49d79
      Michael Widenius authored
      
      storage/xtradb/handler/ha_innodb.cc:
        Fixed wrong last argument to buf_LRU_free_block(): The LRU chain is already locked by this function.
      afa49d79
    • Sergey Vojtovich's avatar
      MDEV-5205 - MariaDB does not start if more than 128 cpu's are available · fd9f1638
      Sergey Vojtovich authored
      - thread_pool_size command line option upper limit increased to 100 000
        (same as for max_connections)
      - thread_pool_size system variable upper limit is maximum of 128 or
        the value given at command line
      - thread groups are now allocated dynamically
      
      Different limit for command line option and system variable was done to
      avoid additional mutex for all_groups and threadpool_max_size.
      fd9f1638
  3. 29 Oct, 2013 3 commits
    • unknown's avatar
      Merge 5.3->5.5 · 52dea410
      unknown authored
      52dea410
    • unknown's avatar
      MariaDB made be compiled by gcc 4.8.1 · 5ce11d8b
      unknown authored
        
        There was 2 problems:
        1) coping/moving of the same type (usually casting) as sizeof() (solved in different ways depends on the cause);
        2) using 'const' in SSL_CTX::getVerifyCallback() which return object (not reference) and so copy of the object will be created and 'const' has no sens.
      5ce11d8b
    • timour@askmonty.org's avatar
      MDEV-5104 crash in Item_field::used_tables with broken order by · 883af99e
      timour@askmonty.org authored
      Analysis:
      st_select_lex_unit::prepare() computes can_skip_order_by as TRUE.
      As a result join->prepare() gets called with order == NULL, and
      doesn't do name resolution for the inner ORDER clause. Due to this
      the prepare phase doesn't detect that the query references non-exiting
      function and field.
        
      Later join->optimize() calls update_used_tables() for a non-resolved
      Item_field, which understandably has no Field object. This call results
      in a crash.
      
      Solution:
      Resolve unnecessary ORDER BY clauses to detect if they reference non-exising
      objects. Then remove such clauses from the JOIN object.
      883af99e
  4. 24 Oct, 2013 1 commit
    • Sergey Petrunya's avatar
      MDEV-5102 : MySQL Bug 69851 · 86901216
      Sergey Petrunya authored
      - Backport MySQL's fix: do set ha_partition::m_pkey_is_clustered for ha_partition 
        objects created with handler->clone() call.
      - Also, include a testcase.
      86901216
  5. 23 Oct, 2013 1 commit
  6. 21 Oct, 2013 6 commits
  7. 16 Oct, 2013 7 commits
  8. 11 Oct, 2013 1 commit
  9. 14 Oct, 2013 1 commit
  10. 12 Oct, 2013 1 commit
    • Igor Babaev's avatar
      Fixed bug mdev-5132. · 78b580b7
      Igor Babaev authored
      Objects of the classes Item_func_isnull and Item_func_isnotnull
      must have the flag sargable set to TRUE.
      Set the value of the flag sargable only in constructors of the 
      classes inherited from Item_int_func.
      78b580b7
  11. 11 Oct, 2013 1 commit
  12. 10 Oct, 2013 1 commit
    • Igor Babaev's avatar
      Fixed bug mdev-5105. · 7c87385e
      Igor Babaev authored
      The bug caused a memory overwrite in the function update_ref_and_keys()
      It happened due to a wrong value of SELECT_LEX::cond_count. This value
      historically was calculated by the fix_fields method. Now the logic of
      calling this method became too complicated and, as a result, this value
      is calculated not always correctly.
      The patch changes the way how and when  the values of SELECT_LEX::cond_count
      and of SELECT_LEX::between_count are calculated. The new code does it just at
      the beginning of update_ref_and_keys().
       
      7c87385e
  13. 04 Oct, 2013 2 commits
  14. 14 Oct, 2013 3 commits
  15. 13 Oct, 2013 2 commits
  16. 10 Oct, 2013 1 commit
  17. 09 Oct, 2013 1 commit
    • Alexey Botchkov's avatar
      MDEV-3856 Import of a large polygon fails/hangs. · ae826010
      Alexey Botchkov authored
              The Gis_point::init_from_wkt called the String::realloc(),
              and this call is quite slow in the DEBUG mode. Which makes
              loading the huge polygon hang forever.
              Fixed by using the String::realloc(size, inc_size) version instead
              as it's done for other spatial features.
      ae826010
  18. 03 Oct, 2013 1 commit
    • Igor Babaev's avatar
      Fixed bug mdev-5028. · 00816a96
      Igor Babaev authored
      Apparently in a general case a short-cut for the distinct optimization
      is invalid if join buffers are used to join tables after the tables whose
      values are to selected.
      00816a96
  19. 26 Sep, 2013 1 commit
  20. 25 Sep, 2013 2 commits