1. 19 May, 2018 3 commits
  2. 18 May, 2018 2 commits
    • Vladislav Vaintroub's avatar
      MDEV-16220 MTR - do not pass UTF8 on the command line for mysql client. · 27a7365f
      Vladislav Vaintroub authored
      It should work ok on all Unixes, but on Windows ,only worked by accident
      in the past, with client not being Unicode safe.
      
      It stopped working with Visual Studio 2017 15.7 update now.
      27a7365f
    • Jacob Mathew's avatar
      MDEV-7914: spider/bg.ha, spider/bg.ha_part crash server sporadically in buildbot · f76a17e3
      Jacob Mathew authored
      The crash occurs when a thread that is closing its connection attempts to
      access Spider transaction information when another thread has freed that memory
      while processing Spider plugin deinit.  This occurs because Spider does not
      adjust the plugin's reference count when it sets a transaction information
      pointer for the plugin.
      
      The fix I implemented changes the way Spider sets the transaction information
      pointer to use thd_set_ha_data() so that Spider's plugin reference counter is
      adjusted as well.
      
      Author:
        Jacob Mathew.
      
      Reviewer:
        Kentoku Shiba.
      
      Merged From:
        Commit ab9d420d on branch 10.2
      f76a17e3
  3. 17 May, 2018 1 commit
  4. 16 May, 2018 3 commits
  5. 15 May, 2018 3 commits
    • Monty's avatar
      MDEV-14943 Alter table ORDER BY bug · b050df4f
      Monty authored
      Problem was that if copy_data_between_tables() didn't do proper
      clean up in case of failures:
      - copy object was not properly freed
      - end_bulk_insert() was not called
      - mysql_trans_prepare_alter_copy_data() set THD->transaction.on to
        false which was not properly restored
      
      The last part caused a crash in Aria as Aria depends on that THD
      is correct.
      
      Other things:
      - Reset info->switched_transactional after usage (safety)
      - Reset bulk_insert_single_undo (safety)
      b050df4f
    • Monty's avatar
      MDEV-654 Assertion `share->now_transactional' failed in flush_log_for_bitmap... · 2b749a7b
      Monty authored
      MDEV-654 Assertion `share->now_transactional' failed in flush_log_for_bitmap on concurrent workload with Aria tables
      
      Problem was that we the bitmap needs to be flushed before disabling
      logging of redo entires, as writing the bitmap to disk by
      background checkpoint may cause redo entries.
      2b749a7b
    • Oleksandr Byelkin's avatar
      MDEV-15347: Valgrind or ASAN errors in mysql_make_view on query from information_schema · 0bd2b802
      Oleksandr Byelkin authored
      Make each lex pointing to statement lex instead of global pointer in THD (no
      need store and restore the global pointer and put it on SP stack).
      0bd2b802
  6. 11 May, 2018 5 commits
    • Marko Mäkelä's avatar
      Merge 10.0 into 10.1 · 3b99a274
      Marko Mäkelä authored
      3b99a274
    • Sachin Agarwal's avatar
      Bug #26334149 - MYSQL CRASHES WHEN FULL TEXT INDEXES IBD FILES ARE ORPHANED DUE TO RENAME TABLE · 197bf0fe
      Sachin Agarwal authored
      Problem:
      When FTS index is added into a table which doesn't have 'FTS_DOC_ID'
      column, Innodb rebuilds table to add column 'FTS_DOC_ID'. when this FTS
      index is dropped from this table. Innodb doesn't not rebuild table to
      remove 'FTS_DOC_ID' column and deletes FTS index auxiliary tables.
      But it doesn't delete FTS common auxiliary tables.
      Later when the database having this table is renamed, FTS auxiliary
      tables are not renamed because table's flags2 (dict_table_t.flags2)
      has been resetted for DICT_TF2_FTS flag during FTS index drop operation.
      Now when we drop old database, it leads to an assert.
      
      Fix:
      During renaming of FTS auxiliary tables, ORed a condition to check if
      table has DICT_TF2_FTS_HAS_DOC_ID flag set.
      
      RB: 18769
      Reviewed by : Jimmy.Yang@oracle.com
      197bf0fe
    • Thirunarayanan Balathandayuthapani's avatar
      Bug #27041445 SERVER ABORTS IF FTS_DOC_ID EXCEEDS FTS_DOC_ID_MAX_STEP · 9c03ba8f
      Thirunarayanan Balathandayuthapani authored
      Problem:
      =======
      Multiple insert statement in table contains FULLTEXT KEY and a
      FTS_DOC_ID column aborts the server if the FTS_DOC_ID exceeds
      FTS_DOC_ID_MAX_STEP.
      
      Solution:
      ========
      Remove the exception for first committed insert statement.
      
      Reviewed-by: Jimmy Yang<jimmy.yang@oracle.com>
      RB: 18023
      9c03ba8f
    • Marko Mäkelä's avatar
      Merge 5.5 into 10.0 (no changes) · c70fc6b1
      Marko Mäkelä authored
      c70fc6b1
    • Marko Mäkelä's avatar
      Remove a redundant condition added by the 5.6.40 merge · 580a8061
      Marko Mäkelä authored
      When Oracle fixed MDEV-13899 in their own way, they moved the
      condition to the only caller of PageConverter::update_records().
      Thus, the merge of 5.6.40 into MariaDB added a redundant condition.
      
      PageConverter::update_records(): Move the page_is_leaf() condition
      to the only caller, PageConverter::update_index_page().
      580a8061
  7. 10 May, 2018 3 commits
  8. 09 May, 2018 5 commits
  9. 08 May, 2018 6 commits
  10. 07 May, 2018 4 commits
  11. 06 May, 2018 1 commit
  12. 05 May, 2018 2 commits
  13. 04 May, 2018 2 commits
    • Marko Mäkelä's avatar
      MDEV-16092 Crash in encryption.create_or_replace · 39d248fa
      Marko Mäkelä authored
      If the tablespace is dropped or truncated after the
      space->is_stopping() check in fil_crypt_get_page_throttle_func(),
      we would proceed to request the page, and eventually report a fatal
      error.
      
      buf_page_get_gen(): Do not retry reading if mode==BUF_GET_POSSIBLY_FREED.
      
      lock_rec_block_validate(): Be prepared for a NULL return value when
      invoking buf_page_get_gen() with mode=BUF_GET_POSSIBLY_FREED.
      39d248fa
    • Sergei Golubchik's avatar
      Merge branch '5.5' into 10.0 · 3c07ed14
      Sergei Golubchik authored
      3c07ed14