maria:bb-10.3-anel-PR796

Last commit made on 2020-02-26
Get this branch:
git clone -b bb-10.3-anel-PR796 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.3-anel-PR796
Repository:
lp:maria

Recent commits

d02fe7b... by Anel Husakovic <email address hidden>

Drop temporary table and base table with the same name

a662cb9... by Sergey Petrunia

Better comments

cfa0506... by Igor Babaev

MDEV-21554 Crash in JOIN_CACHE_BKAH::skip_index_tuple when mrr=on and
           join_cache_level=6+

The patch fixes two similar bugs in the commit 8eeb689e9fc57afe19a8dbff354b5f9f167867a9
that added multi_range_read support to partitions. The commit opened
a possibility to join a partition table using BKA+MRR. However in some
cases it could lead to wrong results or even crashes.

This could happened when
- index condition pushdown was used to join the table or
- the joined table was an inner table of an outer join and 'not exist'
  optimization was applied or
- the join table was the inner table of a semi-join and the first match
  optimization was applied

The bugs were in the code of the call-back functions
- partition_multi_range_key_skip_record() and
- partition_multi_range_key_skip_index_tuple().
Each of this function consist only of an invocation of another function.
Yet a wrong parameter was passed at this invocation.

The fix was suggested by Sergey Petrunia and it is apparently in line
with original design.
The corresponding comprehensive test cases demonstrating the problems
caused by the bugs were constructed by me.

f6b9a29... by Daniel Black

MDEV-16662: cmake remove empty INSTALL_DEBUG_TARGET

No adverse effects since this was made a null function in
6b53f9d781cc19cbec96c3eb048e6407021685a2.

This function had the last remaining cmake CMP0026 violation.

c749eb2... by Daniel Black

MDEV-16662: cmake: CMP0026 compatible for dtrace

cmake enabling -DENABLE_DTRACE=ON is particularlly noisy with CMP0026
errors.

Fixed in the same way as 6b53f9d781cc19cbec96c3eb048e6407021685a2

affe7fa... by Sergey Petrunia

MDEV-21628: Index condition pushdown condition ... not used with BKA

(Backport to 10.3)
Partitioning storage now supports MRR but doesn't support Index Condition
Pushdown (aka ICP). This causes counter-intuitive query plans for queries
that use BKA and conditions that depend on index fields:
- If the condition refers to other tables, BKA's variant of ICP is used
   to handle it.
- If the condition depends on this table only, the optimizer will try to
  use regular ICP for it, which will fail because the storage engine
  doesn't support ICP.

Make the optimizer be smarter in the second case: if we were not able to
use regular ICP, use BKA's variant of ICP..

85d4a45... by Otto Kekäläinen

Deb: Run 'wrap-and-sort -a' so comparison across releases is easier

No functional changes.

Apply this in 10.3 so eventually it is merged to 10.4 and 10.5, which
in turn will have separate wrap-and-sort runs but only for new lines,
and not affecting badly next merges from 10.3 to 10.4 to 10.5.

Also remove a duplicate line that was found thanks to wrap-and-sort.

1f0e72f... by Otto Kekäläinen

Deb: Remove unnecessary manual libzstd1 dependency from RocksDB plugin

The Debian build tools add all run-time dependencies automatically. For the
mariadb-rocksdb-plugin the "${misc:Depends}, ${shlibs:Depends}" will become
(based on the build dependencies at build time):

  Depends: mariadb-server-10.4 (= 1:10.4.12-1), rocksdb-tools,
  libc6 (>= 2.29), liblz4-1 (>= 0.0~r130), libsnappy1v5 (>= 1.1.8),
  libstdc++6 (>= 7), libzstd1 (>= 1.3.3), zlib1g (>= 1:1.1.4)

There is no need to manually add run-time build dependencies. Only external
dependencies need to be defined, for example rocksdb-tools could come in
question for mariadb-plugin-rocksdb, and it will be eventually added when
downstream official Debian packaging is merged upstream in a later commit.

58b70dc... by Oleksandr "Sanja" Byelkin

Merge branch '10.2' into 10.3

235d7c6... by Anel Husakovic <email address hidden>

Ignore /lib64 for rpm