maria:10.4-drrtuy-MCOL-2178_2

Last commit made on 2019-06-19
Get this branch:
git clone -b 10.4-drrtuy-MCOL-2178_2 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
10.4-drrtuy-MCOL-2178_2
Repository:
lp:maria

Recent commits

2a9c025... by Roman Nozdrin <email address hidden> on 2019-06-19

MDEV-XXX find_select_handler now tries its best to find a handlerton that
    is able to processes the whole query. find_select_handler traverses
    all global tables for the purpose.

    Select_handler now cleans up temporary table structures on dctor call.

02979da... by Marko Mäkelä on 2019-06-19

Merge 10.3 into 10.4

192aa29... by Marko Mäkelä on 2019-06-19

Merge 10.2 into 10.3

efbfcc8... by Daniel Bartholomew <email address hidden> on 2019-06-18

bump the VERSION

8acbf9c... by Michael Widenius <email address hidden> on 2019-06-18

MDEV-19595 fixed

The test cases for the MDEV found several independent bugs
in MariaDB server and Aria:
- If a temporary table was marked as crashed, it could never
  be deleted.
- Opening of a crashed temporary table gave an error message
  but the error was never forwarded to the caller which caused
  an assert() in my_ok()
- init_read_record() did mmap of all temporary tables, which is
  probably not a good idea as this area can potentially be
  very big. Changed code to only mmap internal temporary tables.
- mmap-ed tables where not unmapped in case of repair/optimize
  which caused bad data in table and crashes if the original
  table files where replaced with new ones (as the old mmap
  was still in place). Fixed by removing the mmap in case
  of repair.
- Cleaned up usage of code that disabled mmap in Aria

3db4d01... by Sergei Golubchik on 2019-06-18

Merge branch 'bb-10.4-release' into 10.4

b23c82f... by Michael Widenius <email address hidden> on 2019-06-18

MDEV-18078 Assertion `trnman_has_locked_tables(trn) > 0' failed

Problem was that in case of implicit rollback for alter table
Aria did try to run commit twice.

The test case for this is tricky to do in 10.2, so it will
be added to 10.4 as part of BACKUP STAGE testing.

48570eb... by mkaruza <email address hidden> on 2019-06-18

MDEV-18832 Galera: 10.4 node crashed with Assertion `state() == s_committing' if you create SEQUENCE, use it, then drop and recreate and use again (#1339)

We could still end committing to binlog even in rollback.
Do not proceed with WSREP commit in this case.

03f3ba2... by mkaruza <email address hidden> on 2019-06-18

MDEV-18940 Galera: Rolling upgrade: all nodes except upgraded node5 failed with Assertion `meta->gtid.seqno == wsrep_thd_trx_seqno(thd)' with SEQUENCEs (#1342)

Empty write sets will not trigger apply callback, and will not
update thread wsrep_trx_meta.gtid.seqno. Because of that assert will
be triggered when commit callback is called.

5352e96... by Alexander Barkov on 2019-06-18

MDEV-17363 - Compressed columns cannot be restored from dump

In collaboration with Sergey Vojtovich <email address hidden>

The COMPRESSED clause is now a part of the data type and goes immediately
after the data type and length, but before the CHARACTER SET clause,
and before column attributes such as DEFAULT, COLLATE, ON UPDATE,
SYSTEM VERSIONING, engine specific column attributes.

In the old reduction, the COMPRESSED clause was a column attribute.

New syntax:
  <varchar or text data type> <length> <compression> <character set> <column attributes>
  <varbinary or blob data type> <length> <compression> <column attributes>

New syntax examples:
  VARCHAR(1000) COMPRESSED CHARACTER SET latin1 DEFAULT ''
  BLOB COMPRESSED DEFAULT ''

Deprecate syntax examples:
  VARCHAR(1000) CHARACTER SET latin1 COMPRESSED DEFAULT ''
  TEXT CHARACTER SET latin1 DEFAULT '' COMPRESSED
  VARBINARY(1000) DEFAULT '' COMPRESSED

As a side effect:
- COMPRESSED is not valid as an SP label name in SQL/PSM routines any more
  (but it's still valid as an SP label name in sql_mode=ORACLE)

- COMPRESSED is now allowed in combination with GENERATED ALWAYS AS:

  TEXT COMPRESSED GENERATED ALWAYS AS REPEAT('a',1000)