1. 10 May, 2018 1 commit
    • Daniel Black's avatar
      MDEV-15655: Add Linux abstract socket support · 08098366
      Daniel Black authored
      The functionality of the socket system variable is extended
      here such that a preciding '@' indicates that the socket
      will be an abstract socket. Thie socket name wil be
      the remainder of the name after the '@'. This is consistent
      with the approached used by systemd in socket activation.
      
      Thanks to Sergey Vojtovich:
      
      On OS X sockaddr_un is defined as:
      
      struct sockaddr_un
      {
        u_char sun_len;
        u_char sun_family;
        char  sun_path[104];
      };
      
      There is a comment in man 7 unix (on linux):
      
      "
      On Linux, the above offsetof() expression equates to the same value as sizeof(sa_family_t),
      but some other implementations include other fields before sun_path, so the offsetof()
      expression more portably describes the size of the address structure.
      "
      
      As such, use the offsetof for Linux and use the previous sizeof(UNIXaddr)
      for non-unix platforms as that's what worked before and they don't
      support abstract sockets so there's no compatibility problem..
      
      strace -fe trace=networking mysqld --skip-networking --socket @abc ...
      ...
      [pid 10578] socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0) = 22
      [pid 10578] setsockopt(22, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
      [pid 10578] bind(22, {sa_family=AF_UNIX, sun_path=@"abc"}, 6) = 0
      [pid 10578] listen(22, 80)              = 0
      ...
      Version: '10.3.6-MariaDB-log'  socket: '@abc'  port: 0  Source distribution
      
      $ lsof -p 10578
      mysqld  10578  dan   22u  unix 0x00000000087e688c       0t0 4787815 @abc type=STREAM
      08098366
  2. 07 May, 2018 1 commit
  3. 13 Apr, 2018 5 commits
  4. 12 Apr, 2018 10 commits
  5. 11 Apr, 2018 5 commits
    • Vicentiu Ciorbaru's avatar
      Fix perfschema.hostcache_ipv4_max_con · 990283b6
      Vicentiu Ciorbaru authored
      Also fix perfschema.hostcache_ipv6_max_con.
      The test case makes use of a debug switch to execute some special code.
      The code does hostname replacement. Every hostname sent during connect
      phase becomes santa.claus.ipv4.example.com (or ipv6). This causes a
      connection from root@localhost to fail, as root is not registered as
      santa claus user. The failure is only apparent on Windows as Unix
      systems make use of sockets, which bypass the name resolution check
      entirely.
      990283b6
    • Vladislav Vaintroub's avatar
      MDEV-15780 : mariabackup does not handle absolute names in for system tablespaces · 4c7a1a1b
      Vladislav Vaintroub authored
      Fix 10.2-specific bug - copy-back is not prepared to handle system
      tablespaces with absolute path.
      4c7a1a1b
    • Jan Lindström's avatar
      MDEV-12903: encryption.innodb_encryption_discard_import fails in buildbot with FOUND vs NOT FOUND · 91245909
      Jan Lindström authored
      Wait until rotation has ended and shutdown before grep to make sure
      that dirty pages are on datafiles.
      91245909
    • Marko Mäkelä's avatar
      MDEV-15832 With innodb_fast_shutdown=3, skip the rollback of connected transactions · dd127799
      Marko Mäkelä authored
      row_undo_step(): If innodb_fast_shutdown=3 has been requested,
      abort the rollback of any non-DDL transactions. Starting with
      MDEV-12323, we aborted the rollback of recovered transactions. The
      transactions would be rolled back on subsequent server startup.
      
      trx_roll_report_progress(): Renamed from trx_roll_must_shutdown(),
      now that the shutdown check has been moved to the only caller.
      
      trx_commit_low(): Allow mtr=NULL for transactions that are aborted
      on rollback.
      
      trx_rollback_finish(): Clean up aborted transactions to avoid
      assertion failures and memory leaks on shutdown. This code was
      previously in trx_rollback_active().
      
      trx_rollback_to_savepoint_low(), trx_rollback_for_mysql_low():
      Remove some redundant assertions.
      dd127799
    • Igor Babaev's avatar
      Fixed mdev-15765 BETWEEN not working in certain cases · 740fc2ae
      Igor Babaev authored
      The implementations of the convert_to_basic_const_item() virtual
      function for the Item_cache classes should call cache_value() when
      value_cached == NULL.
      740fc2ae
  6. 10 Apr, 2018 18 commits