1. 04 Apr, 2018 1 commit
    • Jacob Mathew's avatar
      MDEV-7914: spider/bg.ha, spider/bg.ha_part crash server sporadically in buildbot · eabfadce
      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.
      eabfadce
  2. 24 Mar, 2018 2 commits
  3. 23 Mar, 2018 1 commit
  4. 21 Mar, 2018 2 commits
    • Marko Mäkelä's avatar
      865cec92
    • Teemu Ollakka's avatar
      MDEV-15505 Fixes to compilation without -DWITH_WSREP:BOOL=ON · 33aad1d2
      Teemu Ollakka authored
      Removed including wsrep_api.h from service_wsrep.h. This caused
      various kinds of collisions with definitions when wsrep is
      not supposed to be built in. Defined functions wsrep_xid_seqno()
      and wsrep_xid_uuid() in wsrep_dummy.cc. Replaced wsrep_seqno_t
      with long long where wsrep_api.h is not included.
      
      Removed wsrep_xid_seqno() macro from wsrep_mysqld.h and made
      wsrep code using wsrep_xid_seqno() in handler.cc to be compiled
      in only if WITH_WSREP is ON.
      
      Included wsrep_api.h for mariabackup if WITH_WSREP is ON.
      33aad1d2
  5. 20 Mar, 2018 2 commits
  6. 17 Mar, 2018 1 commit
  7. 16 Mar, 2018 1 commit
  8. 15 Mar, 2018 5 commits
  9. 14 Mar, 2018 1 commit
    • Daniel Black's avatar
      MDEV-8743: where O_CLOEXEC is available, use for innodb buf_dump · fafec1a9
      Daniel Black authored
      As this is the only moderately critical fopened for writing file,
      create an alternate path to use open and fdopen for non-glibc platforms
      that support O_CLOEXEC (BSDs).
      
      Tested on Linux (by modifing the GLIBC defination) to take this
      alternate path:
      
      $ cd /proc/23874
      $ more fdinfo/71
      pos:    0
      flags:  02100001
      mnt_id: 24
      $ ls -la fd/71
      l-wx------. 1 dan dan 64 Mar 14 13:30 fd/71 -> /dev/shm/var_auto_i7rl/mysqld.1/data/ib_buffer_pool.incomplete
      fafec1a9
  10. 13 Mar, 2018 4 commits
  11. 12 Mar, 2018 12 commits
  12. 11 Mar, 2018 1 commit
  13. 10 Mar, 2018 4 commits
    • Marko Mäkelä's avatar
      MDEV-15529 IMPORT TABLESPACE unnecessarily uses the doublewrite buffer · 112df069
      Marko Mäkelä authored
      fil_space_t::atomic_write_supported: Always set this flag for
      TEMPORARY TABLESPACE and during IMPORT TABLESPACE. The page
      writes during these operations are by definition not crash-safe
      because they are not written to the redo log.
      
      fil_space_t::use_doublewrite(): Determine if doublewrite should
      be used.
      
      buf_dblwr_update(): Add assertions, and let the caller check whether
      doublewrite buffering is desired.
      
      buf_flush_write_block_low(): Disable the doublewrite buffer for
      the temporary tablespace and for IMPORT TABLESPACE.
      
      fil_space_set_imported(), fil_node_open_file(), fil_space_create():
      Initialize or revise the space->atomic_write_supported flag.
      
      buf_page_io_complete(), buf_flush_write_complete(): Add the parameter
      dblwr, to indicate whether doublewrite was used for writes.
      
      buf_dblwr_sync_datafiles(): Remove an unnecessary flush of
      persistent tablespaces when flushing temporary tablespaces.
      (Move the call to buf_dblwr_flush_buffered_writes().)
      112df069
    • Marko Mäkelä's avatar
      MDEV-15524 Do not disable page checksums for temporary tables · 54765aaa
      Marko Mäkelä authored
      buf_flush_init_for_writing(): Remove the parameter skip_checksum.
      54765aaa
    • Marko Mäkelä's avatar
      MDEV-15524 Do not write garbage for temporary tables · 4fa18d52
      Marko Mäkelä authored
      fsp_init_file_page_low(): Always initialize the page.
      4fa18d52
    • Marko Mäkelä's avatar
      1e4cb840
  14. 09 Mar, 2018 3 commits