1. 06 Jul, 2017 1 commit
  2. 05 Jul, 2017 1 commit
  3. 04 Jul, 2017 2 commits
    • Alexander Barkov's avatar
    • Alexander Barkov's avatar
      MDEV-13240 Wrong warning with MAX(datetime_field) OVER (...) · 25ad623d
      Alexander Barkov authored
      The problem resided in Item_window_func implementation,
      and it was revealed by bb-10.2-ext specific changes:
      
      Item_window_func::save_in_field() works differently in bb-10.2-ext vs 10.2:
      
      - 10.2 goes through val_str()
      - bb-10.2-ext goes through get_date(), due to Type_handler related changes.
        get_date() tries to convert empty string to DATETIME, hence the warning.
      
      During a discussion with Vicentiu, it was decided to fix
      Item_window_func::val_xxx() to return NULL
      (instead of an "empty" value, such as 0 for numbers and '' for strings)
      when force_return_blank is set.
      25ad623d
  4. 03 Jul, 2017 6 commits
  5. 01 Jul, 2017 6 commits
  6. 30 Jun, 2017 16 commits
  7. 29 Jun, 2017 8 commits
    • Marko Mäkelä's avatar
      Reduce the granularity of innodb_log_file_size · 84e4e450
      Marko Mäkelä authored
      In Mariabackup, we would want the backed-up redo log file size to be
      a multiple of 512 bytes, or OS_FILE_LOG_BLOCK_SIZE. However, at startup,
      InnoDB would be picky, requiring the file size to be a multiple of
      innodb_page_size.
      
      Furthermore, InnoDB would require the parameter to be a multiple of
      one megabyte, while the minimum granularity is 512 bytes. Because
      the data-file-oriented fil_io() API is being used for writing the
      InnoDB redo log, writes will for now require innodb_log_file_size to
      be a multiple of the maximum innodb_page_size (65536 bytes).
      
      To complicate matters, InnoDB startup divided srv_log_file_size by
      UNIV_PAGE_SIZE, so that initially, the unit was bytes, and later it
      was innodb_page_size. We will simplify this and keep srv_log_file_size
      in bytes at all times.
      
      innobase_log_file_size: Remove. Remove some obsolete checks against
      overflow on 32-bit systems. srv_log_file_size is always 64 bits, and
      the maximum size 512GiB in multiples of innodb_page_size always fits
      in ulint (which is 32 or 64 bits). 512GiB would be 8,388,608*64KiB or
      134,217,728*4KiB.
      
      log_init(): Remove the parameter file_size that was always passed as
      srv_log_file_size.
      
      log_set_capacity(): Add a parameter for passing the requested file size.
      
      srv_log_file_size_requested: Declare static in srv0start.cc.
      
      create_log_file(), create_log_files(),
      innobase_start_or_create_for_mysql(): Invoke fil_node_create()
      with srv_log_file_size expressed in multiples of innodb_page_size.
      
      innobase_start_or_create_for_mysql(): Require the redo log file sizes
      to be multiples of 512 bytes.
      84e4e450
    • Marko Mäkelä's avatar
      Clean up InnoDB shutdown · e903d458
      Marko Mäkelä authored
      Tablespace::shutdown(): Clear m_path. This was moved from
      Tablespace::~Tablespace().
      
      LatchDebug::shutdown(): Remove a redundant condition.
      e903d458
    • Marko Mäkelä's avatar
      Simplify access to the binlog offset in InnoDB · 591edccc
      Marko Mäkelä authored
      trx_sys_print_mysql_binlog_offset(): Use 64-bit arithmetics and ib::info().
      
      TRX_SYS_MYSQL_LOG_OFFSET: Replaces TRX_SYS_MYSQL_LOG_OFFSET_HIGH,
      TRX_SYS_MYSQL_LOG_OFFSET_LOW.
      
      trx_sys_update_mysql_binlog_offset(): Remove the constant parameter
      field=TRX_SYS_MYSQL_LOG_INFO. Use 64-bit arithmetics.
      591edccc
    • Marko Mäkelä's avatar
    • Marko Mäkelä's avatar
      buf_read_ibuf_merge_pages(): Discard all entries for a missing tablespace · cd623508
      Marko Mäkelä authored
      A similar change was contributed to Percona XtraBackup, but for some
      reason, it is not present in Percona XtraDB. Since MDEV-9566
      (MariaDB 10.1.23), that change is present in the MariaDB XtraDB.
      cd623508
    • Marko Mäkelä's avatar
      Minor cleanup of InnoDB I/O routines · 68b5aeae
      Marko Mäkelä authored
      Change many function parameters from IORequest& to const IORequest&.
      
      Remove an unused definition of ECANCELED.
      68b5aeae
    • Marko Mäkelä's avatar
      Simplify up InnoDB redo log system startup and shutdown · 859714e7
      Marko Mäkelä authored
      recv_sys_init(): Remove the parameter.
      
      recv_sys_create(): Merge to recv_sys_init().
      
      recv_sys_mem_free(): Merge to recv_sys_close().
      
      log_mem_free(): Merge to log_shutdown().
      859714e7
    • Marko Mäkelä's avatar
      8143ef1b