maria:bb-10.2-mdev13355

Last commit made on 2017-07-21
Get this branch:
git clone -b bb-10.2-mdev13355 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.2-mdev13355
Repository:
lp:maria

Recent commits

4bdf931... by Sergey Petrunia on 2017-07-21

MDEV-13355: Assertion `using_unique_constraint || group_buff <= param->group_buff...

The code in OIN::optimize_inner() has this call

   calc_group_buffer(this, group_list)

the call is however bypassed when the optimizer figures out that the JOIN
has "Impossible WHERE".

If we attempt to calculate the value of a window function afterwards,
we will get a crash when trying to create a temporary table.

So, put a call to calc_group_buffer() here as well. It's a bit surprising
that all these steps are done for a query that will produce zero rows
but we are just following the approach taken by the fix for mdev-11999
here.

2a1035b... by Sergey Petrunia on 2017-07-21

MDEV-13351: Server crashes in st_select_lex::set_explain_type upon UNION with window function

Make st_select_lex::set_explain_type() take into account that JOIN_TABs
it is traversing may be also post-join aggregation JOIN_TABs (which
have pos_in_table_list=NULL, etc).

e2afdb1... by Sergey Petrunia on 2017-07-21

MDEV-13344: Server crashes in in AGGR_OP::put_record on subquery

Add a testcase

17fc288... by Sergey Petrunia on 2017-07-21

MDEV-13352: Server crashes in st_join_table::remove_duplicates

Do not run the window function computation step when the select
produces no rows (zero_result_cause!=NULL).
This may cause reads from uninitialized memory.

We still need to run the window function computation step when
the output includes just one row (for example
SELECT MAX(col), RANK() OVER (...) FROM t1 WHERE 1=0).

This fix also resolves an issue with queries with window functions
producing an output row where should be none, like in
SELECT ROW_NUMBER() FROM t1 WHERE 1=0.

Updated a few test results in the existing tests to reflect this.

bc75c57... by shk on 2017-07-17

update .gitignore

during build on 10.2 following files are generated:

  * scripts/galera_new_cluster
  * scripts/galera_recovery
  * support-files/mariadb.service
  * support-files/mariadb.pp

and they are untracked for git. Let's add them to .gitignore

013595f... by Vladislav Vaintroub on 2017-07-17

MDEV-13332 mariabackup from 10.2.x crashes with --ftwrl-* options

Fixed null pointer dereference in parsing "show full processlist" output
with atoi().

Some Innodb background thread has NULL in 'Time' column,
thus backup would crash with when atoi is applied to null pointer.

1b3cf18... by Sergei Golubchik on 2017-07-15

CONNECT: accessed p[i] outside of the loop

this failed json.test on fulltest2 builder

95dcfed... by Sergei Golubchik on 2017-07-13

deb packages didn't build

because they compile with -Werror=format-security

b9aab7d... by Sergei Golubchik on 2017-07-13

Merge branch 'connect/10.2' into 10.2

a76c05b... by Sergei Golubchik on 2017-07-12

Require either OpenSSL 1.0 or 1.1 on Debian