View Bazaar branches
Get this repository:
git clone https://git.launchpad.net/maria

MariaDB has 18 active reviews.

Branches

Name Last Modified Last Commit
bb-10.1-sujatha 2019-08-20 05:50:49 UTC 2 hours ago
Test version 3

Author: Sujatha
Author Date: 2019-08-20 05:50:35 UTC

Test version 3

10.1 2019-08-20 04:47:11 UTC 3 hours ago
MDEV-18863: Fix -Wsign-compare

Author: Marko Mäkelä
Author Date: 2019-08-20 04:47:11 UTC

MDEV-18863: Fix -Wsign-compare

10.2 2019-08-19 22:03:03 UTC 10 hours ago
MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

Author: Julius Goryavsky
Author Date: 2019-07-30 15:16:25 UTC

MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

The execution of mtr in the Windows environment fails due to
the fact that the new code from MDEV-18565 does not take into
account the need to add the ".exe" extension to the names of
executable files when searching for pre-requisites that are
needed to run SST scripts (especially when using mariabackup)
and when searching paths to some other Galera utilities.
This patch fixes this flaw.

Also adding paths to the PATH environment variable is now
done with the correct delimiter character.

10.3 2019-08-19 21:59:33 UTC 10 hours ago
MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

Author: Julius Goryavsky
Author Date: 2019-07-30 15:18:31 UTC

MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

The execution of mtr in the Windows environment fails due to
the fact that the new code from MDEV-18565 does not take into
account the need to add the ".exe" extension to the names of
executable files when searching for pre-requisites that are
needed to run SST scripts (especially when using mariabackup)
and when searching paths to some other Galera utilities.
This patch fixes this flaw.

Also adding paths to the PATH environment variable is now
done with the correct delimiter character.

10.4 2019-08-19 21:56:11 UTC 10 hours ago
MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

Author: Julius Goryavsky
Author Date: 2019-07-30 15:18:31 UTC

MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

The execution of mtr in the Windows environment fails due to
the fact that the new code from MDEV-18565 does not take into
account the need to add the ".exe" extension to the names of
executable files when searching for pre-requisites that are
needed to run SST scripts (especially when using mariabackup)
and when searching paths to some other Galera utilities.
This patch fixes this flaw.

Also adding paths to the PATH environment variable is now
done with the correct delimiter character.

5.5 2019-08-19 21:20:41 UTC 10 hours ago
MDEV-20265 Unknown column in field list

Author: Igor Babaev
Author Date: 2019-08-16 00:27:49 UTC

MDEV-20265 Unknown column in field list

This patch corrects the fix of the patch for mdev-19421 that resolved
the problem of parsing some embedded join expressions such as
  t1 join t2 left join t3 on t2.a=t3.a on t1.a=t2.a.
Yet the patch contained a bug that prevented proper context analysis
of the queries where such expressions were used together with comma
separated table references in from clauses.

bb-10.1-bar 2019-08-19 18:42:56 UTC 13 hours ago
MDEV-19034 ASAN unknown-crash in get_date_time_separator with PAD_CHAR_TO_FUL...

Author: Alexander Barkov
Author Date: 2019-08-19 18:42:56 UTC

MDEV-19034 ASAN unknown-crash in get_date_time_separator with PAD_CHAR_TO_FULL_LENGTH

10.5 2019-08-19 16:57:59 UTC 15 hours ago
MDEV-20384 Assertion `field.is_sane()' failed in Protocol_text::store_field_m...

Author: Alexander Barkov
Author Date: 2019-08-19 16:57:59 UTC

MDEV-20384 Assertion `field.is_sane()' failed in Protocol_text::store_field_metadata

bb-10.5-monty 2019-08-19 16:43:08 UTC 15 hours ago
Updated result for rocksdb tests after merge

Author: Monty
Author Date: 2019-08-18 09:43:41 UTC

Updated result for rocksdb tests after merge

10.5-mdev8306-2 2019-08-19 15:26:53 UTC 16 hours ago
Created a new list for order by items

Author: varun
Author Date: 2019-08-19 15:26:53 UTC

Created a new list for order by items

bb-10.2-marko 2019-08-19 14:11:49 UTC 18 hours ago
MDEV-20377: Introduce cmake -DWITH_MSAN:BOOL=ON

Author: Marko Mäkelä
Author Date: 2019-08-19 14:11:49 UTC

MDEV-20377: Introduce cmake -DWITH_MSAN:BOOL=ON

MemorySanitizer is a compile-time instrumentation layer in clang and GCC.
Together with AddressSanitizer mostly makes the run-time instrumentation
of Valgrind redundant. It is a little more tricky to set up, because
running with uninstrumented libraries will lead into false positives.

You will need a MSAN-instrumented libc++, and you should use
-stdlib=libc++ instead of the default libstdc++. To build the
instrumented library, you can refer to
https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo
or you can adapt these steps that worked for me, for clang-8 version 8.0.1:

cd /mariadb
sudo apt source libc++-8-dev
cd llvm-toolchain-8-8.0.1
mkdir libc++msan; cd libc++msan
cmake ../libcxx -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_SANITIZER=Memory \
-DCMAKE_C_COMPILER=clang-8 -DCMAKE_CXX_COMPILER=clang++-8

Then, in your MariaDB build directory, you have to compile with
libc++ and bundled libraries, such as WITH_SSL=bundled, WITH_SSL=zlib.
For uninstrumented system libraries, you will get false positives for
uninitialized values. Like this:

cmake -DWITH_MSAN=ON -DWITH_SSL=bundled -DWITH_ZLIB=bundled \
-DCMAKE_CXX_FLAGS='-stdlib=libc++' ..

Note: you should also add -O2 to the compiler options, or you may
get crashes due to stack overflow.

Finally, to run tests, you have to replace libc++ with the instrumented one:

LD_LIBRARY_PATH=/mariadb/llvm-toolchain-8-8.0.1/libc++msan/lib \
MSAN_OPTIONS=abort_on_error=1 \
./mtr --big-test --parallel=auto --force --retry=0

This is not the final commit. Some issues will still have to be fixed
for WITH_MSAN to be usable. See MDEV-20377 for details.

nm/period-fk-linear 2019-08-19 14:00:10 UTC 18 hours ago
check referenced table period name in FK

Author: Nikita Malyavin
Author Date: 2019-08-16 12:12:05 UTC

check referenced table period name in FK

bb-10.3-serg 2019-08-19 12:17:38 UTC 20 hours ago
MDEV-15458 Segfault in heap_scan() upon UPDATE after ADD SYSTEM VERSIONING

Author: Sergei Golubchik
Author Date: 2019-08-19 12:17:38 UTC

MDEV-15458 Segfault in heap_scan() upon UPDATE after ADD SYSTEM VERSIONING

heap_scan() limits info->next_block to the total number of
records in the table. So when this number changes, info->next_block
needs to take it into account.

bb-10.4-midenok 2019-08-19 11:02:13 UTC 21 hours ago
MDEV-20360 Assertion bitmap_is_set(read_partitions) upon updating view of join

Author: midenok
Author Date: 2019-08-19 11:02:13 UTC

MDEV-20360 Assertion bitmap_is_set(read_partitions) upon updating view of join

bb-10.3-midenok 2019-08-19 10:52:01 UTC 21 hours ago
Fix

Author: midenok
Author Date: 2019-08-19 10:52:01 UTC

Fix

bb-10.4-rucha 2019-08-17 06:51:17 UTC 2019-08-17
new test files for checking datatypes

Author: Rucha Deodhar
Author Date: 2019-08-17 05:02:13 UTC

new test files for checking datatypes

10.5-mdev-11588 2019-08-16 16:00:01 UTC 2019-08-16
MDEV-11588 Support for ONLY_FULL_GROUP_BY functional dependency

Author: Galina Shalygina
Author Date: 2019-05-14 20:44:04 UTC

MDEV-11588 Support for ONLY_FULL_GROUP_BY functional dependency

Support functional dependencies usage when ONLY_FULL_GROUP_BY
SQL_MODE is enabled.

It is allowed to use fields that are either GROUP BY fields or
fields that are functionally dependent on GROUP BY fields in
SELECT list, HAVING clause and ORDER BY clause.
Functionally dependent fields can be extracted from the WHERE clause
(for the most outer JOIN tables) and ON expressions (for JOIN weak part
tables) equalities.

For these equalities such rules should hold:
1. Equalities should be of the form (1):

   F2 = g(H11,..,H1n), where

   (H11, ..., H1n) are some functions of GROUP BY fields and/or
                    GROUP BY fields and/or constants.
    g is some function. It can be identity function.
    F2 is some non GROUP BY field.

    F2 here can be extracted as a new functionally dependent field.
2. If F2 is from the left part of LEFT JOIN it can’t be extracted
3. If F2 is from the right part of the LEFT JOIN either:
   2.1. H11,...,H1n should be fields from the right part
   2.2 n=1 and H1 is from the left part of the considered JOIN
4. If (1) is used in ON expression this ON expression can't depend
   on non GROUP BY fields of the left part of the LEFT JOIN.
5. If (1) is used in ON expression this ON expression can't depend
   on the right JOIN part fields only.
6. 4 and 5 doesn't work if F2 table has at least one field used in
   GROUP BY.

bb-10.3-release 2019-08-16 13:27:25 UTC 2019-08-16
MDEV-19781 Add page id matching check in innochecksum tool

Author: Thirunarayanan Balathandayuthapani
Author Date: 2019-08-13 09:32:44 UTC

MDEV-19781 Add page id matching check in innochecksum tool

Added the condition in innochecksum tool to check page id mismatch.
This could catch the write corruption caused by InnoDB.

Added the error message inside fil_io() to check whether it writes
the page to wrong offset.

bb-10.5-robert 2019-08-16 11:36:45 UTC 2019-08-16
MDEV-20298 lidbd-mariadb-perl is not always available

Author: Robert Bindar
Author Date: 2019-08-16 11:35:54 UTC

MDEV-20298 lidbd-mariadb-perl is not always available

bb-10.4-varun 2019-08-16 11:19:12 UTC 2019-08-16
MDEV-20349: Assertion `to_len >= 8' failed in convert_to_printable

Author: varun
Author Date: 2019-08-16 11:19:12 UTC

MDEV-20349: Assertion `to_len >= 8' failed in convert_to_printable

Use convert_to_printable function to write only non-empty ranges to the optimizer trace

bb-10.5-serg 2019-08-16 09:35:06 UTC 2019-08-16
MDEV-19780 Remove the TokuDB storage engine

Author: Sergei Golubchik
Author Date: 2019-08-16 09:35:06 UTC

MDEV-19780 Remove the TokuDB storage engine

disable tokudb, because it's being deprecated by the vendor

bb-10.4-MDEV-19781 2019-08-16 07:52:03 UTC 2019-08-16
MDEV-19781 Create MariaDB named commands on Windows

Author: Rasmus Johansson
Author Date: 2019-06-17 07:43:01 UTC

MDEV-19781 Create MariaDB named commands on Windows

bb-10.3-sujatha 2019-08-16 07:28:33 UTC 2019-08-16
MDEV-19632: Replication aborts with ER_SLAVE_CONVERSION_FAILED upon CREATE .....

Author: Sujatha
Author Date: 2019-08-16 07:28:33 UTC

MDEV-19632: Replication aborts with ER_SLAVE_CONVERSION_FAILED upon CREATE ... SELECT in ORACLE mode

Analysis and Fix:
=================
When SQL_MODE=ORACLE the 'BLOB' type gets translated to 'LONGBLOB'. Because
of this change replicated CREATE ... SELECT statement fails on slave in row
based replication. The reason being, the source field type is 'BLOB' and
destination field type is 'LONGBLOB'.

The BLOB type translation issue was fixed as part of MDEV-20263. At present
MDEV-19632 adds a replication specific test case to prove replication works
fine.

bb-10.5-bar 2019-08-15 14:18:25 UTC 2019-08-15
MDEV-20353 Add separate type handlers for unsigned integer data types

Author: Alexander Barkov
Author Date: 2019-08-15 09:16:00 UTC

MDEV-20353 Add separate type handlers for unsigned integer data types

bb-10.2-MDEV-19348-alternative 2019-08-15 09:43:15 UTC 2019-08-15
MDEV-18128 Simplify .ibd file creation

Author: Thirunarayanan Balathandayuthapani
Author Date: 2019-08-15 09:43:15 UTC

MDEV-18128 Simplify .ibd file creation

Problem:
========
During ibd file creation, InnoDB flushes the page0 without crypt
information. During recovery, InnoDB encounters encrypted page read
before initialising the crypt data of the tablespace. So it leads t
corruption of page and doesn't allow innodb to start.

Solution:
=========
Write crypt_data information in page0 while creating .ibd file creation.
During recovery, crypt_data will be initialised while processing
MLOG_FILE_NAME redo log record.

bb-10.1-galera 2019-08-15 08:26:10 UTC 2019-08-15
Fix test.

Author: Jan Lindström
Author Date: 2019-08-15 08:26:10 UTC

Fix test.

bb-10.4-MDEV-19831 2019-08-14 18:38:45 UTC 2019-08-14
MDEV-19831 find_select_handler() now tries its best to find a handlerton that

Author: Roman Nozdrin
Author Date: 2019-06-19 21:31:51 UTC

MDEV-19831 find_select_handler() now tries its best to find a handlerton that
    is able to processes the whole query. For that it traverses tables from
    subqueries.

    Select_handler now cleans up temporary table structures on dctor call.

    Enable outer to inner JOIN rewrites for smart engine Select handler.

bb-10.2-sujatha 2019-08-14 15:30:54 UTC 2019-08-14
MENT-325: DROP TABLE IF EXISTS killed on master but was replicated

Author: Sujatha
Author Date: 2019-08-14 15:30:54 UTC

MENT-325: DROP TABLE IF EXISTS killed on master but was replicated

Problem:
=======
DROP TABLE IF EXISTS was killed. The table still exists on
the master but the DDL was still logged.

Analysis:
=========
During the execution of DROP TABLE command "ha_delete_table" call is invoked
to delete the table. If the query is killed at this point, the kill command
is not handled within the code. This results in two issues.
1) The table which is not dropped also gets written into the binary log.
2) The code continues further upon receiving 'KILL QUERY'.

Fix:
===
Upon receiving the KILL command the query should stop its current execution.
Tables which were successfully dropped prior to KILL command should be
included in the binary log.

bb-10.3-anel-MDEV-20210-show_invisible 2019-08-14 12:57:28 UTC 2019-08-14
MDEV-20210 If you have an INVISIBLE VIRTUAL column, SHOW CREATE TABLE doesn't...

Author: Anel Husakovic
Author Date: 2019-07-31 10:28:38 UTC

MDEV-20210 If you have an INVISIBLE VIRTUAL column, SHOW CREATE TABLE doesn't list it as INVISIBLE

bb-10.2-galera 2019-08-13 06:24:31 UTC 2019-08-13
MDEV-20324: Galera threads are not registered to performance schema

Author: Jan Lindström
Author Date: 2019-08-13 06:24:31 UTC

MDEV-20324: Galera threads are not registered to performance schema

Galera threads were not registered to performance schema and
used pthread_create when mysql_thread_create should have been
used.

Added test case to verify current galera performance schema
instrumentation does work.

bb-10.1-serg 2019-08-12 16:30:19 UTC 2019-08-12
ensure that pam plugin is present in release packages

Author: Sergei Golubchik
Author Date: 2019-08-12 16:30:19 UTC

ensure that pam plugin is present in release packages

bb-10.4-psergey 2019-08-09 21:53:28 UTC 2019-08-09
Optimizer trace: print cost and #rows of the join prefix

Author: Sergey Petrunia
Author Date: 2019-08-09 21:53:28 UTC

Optimizer trace: print cost and #rows of the join prefix

The names rows_for_plan and cost_for_plan follow MySQL
Also added post-join-operation selectivity cost

bb-10.3-sachin-rpl 2019-08-09 13:41:18 UTC 2019-08-09
MDEV-16239 Many test in rpl suite fails

Author: Sachin Setiya
Author Date: 2018-05-17 09:10:55 UTC

MDEV-16239 Many test in rpl suite fails

Fix rpl_skip_error test.
  We cant reset Slave_skipped_errors(even with FLUSH STATUS), So instead
of absolute slave_skipped_errors we look for delta of slave_skipped_errors
Fix rpl.rpl_binlog_errors and binlog_encryption.rpl_binlog_errors
  We create the $load_file and $load_file2 but we never remove them.
Fix rpl_000011.test
  Instead of real value use delta value , Since flush status wont flush
LONGLONG variable.
Fix rpl_row_find_row_debug
  Instead of searching whole log_error_ file we will use search_pattern_in_file
which runs pattern search only on latest test run , instead of full file.
Fix rpl_ip_mix rpl_ip_mix2
  We should call reset slave all because we also want to reset master_host
otherwise show slave status wont be empty and making repeat N a failure.
Fix rpl_rotate_logs
  First we have to remove master.info file (cleanup) and second we have to
call reset slave all because if we do not call reset slave all then we wont
read master.info file beacuse we already have master config in memory.
And this makes start slave to pass , which shoud fail becuase its permision
is 000
Fix circular_serverid0 test
  The reason is that ++dbug_rows_event_count == 2 in queue_event does
not take --repeat into account. So I have reseted the dbug_rows_event_count
in if body.

bb-10.5-svoj-MDEV-17084 2019-08-09 13:29:27 UTC 2019-08-09
MDEV-17084 - Optimize append only files for NVDIMM

Author: Sergey Vojtovich
Author Date: 2019-08-09 13:29:27 UTC

MDEV-17084 - Optimize append only files for NVDIMM

Attempt moving pmem append cache into IO_CACHE.

Downsides:
- append cache flushing in open_binlog()...
- ...because binlog header is written via append cache
- somewhat different crash recovery: append cache is now flushed after
  LOG_EVENT_BINLOG_IN_USE_F is written
- it may make sense to bypass IO_CACHE with binlog, rather than cascading
  it with append cache

bb-10.4-7409 2019-08-09 13:10:12 UTC 2019-08-09
MDEV-7409 On RBR, extend the PROCESSLIST info to include at least the name of...

Author: Sachin Setiya
Author Date: 2019-07-17 13:23:09 UTC

MDEV-7409 On RBR, extend the PROCESSLIST info to include at least the name of the recently used table

When RBR is used, add the db name to db Field and table name to Status
Field of the "SHOW FULL PROCESSLIST" command for SQL thread.

bb-10.1-17614 2019-08-09 11:47:11 UTC 2019-08-09
MDEV-17614 INSERT on dup key update is replication unsafe

Author: Sachin Setiya
Author Date: 2019-07-17 10:26:29 UTC

MDEV-17614 INSERT on dup key update is replication unsafe

Problem:-
When mysql executes INSERT ON DUPLICATE KEY INSERT, the storage engine checks
if the inserted row would generate a duplicate key error. If yes, it returns
the existing row to mysql, mysql updates it and sends it back to the storage
engine.When the table has more than one unique or primary key, this statement
is sensitive to the order in which the storage engines checks the keys.
Depending on this order, the storage engine may determine different rows
to mysql, and hence mysql can update different rows.The order that the
storage engine checks keys is not deterministic. For example, InnoDB checks
keys in an order that depends on the order in which indexes were added to
the table. The first added index is checked first. So if master and slave
have added indexes in different orders, then slave may go out of sync.

Solution:-
Make INSERT...ON DUPLICATE KEY UPDATE unsafe while using stmt or mixed format
When there is more then one unique key.
Although there is two exception.
  1. Auto Increment key is not counted because Innodb will get gap lock for
    failed Insert and concurrent insert will get a next increment value. But if
    user supplies auto inc value it can be unsafe.
  2. Count only unique keys for which insertion is performed.

So this patch also addresses the bug id #72921

bb-10.5-wlad 2019-08-09 11:35:18 UTC 2019-08-09
Move windows version of pread and pwrite into tpool

Author: Vladislav Vaintroub
Author Date: 2019-08-09 11:33:21 UTC

Move windows version of pread and pwrite into tpool

bb-10.2-monty 2019-08-08 17:10:00 UTC 2019-08-08
Fixed assertion Assertion `!table->pos_in_locked_tables' failed

Author: Monty
Author Date: 2019-08-08 17:10:00 UTC

Fixed assertion Assertion `!table->pos_in_locked_tables' failed

MDEV-17717
Assertion `!table->pos_in_locked_tables' failed in tc_release_table on
flushing RocksDB table under SERIALIZABLE
MDEV-17998
Deadlock and eventual Assertion `!table->pos_in_locked_tables' failed
in tc_release_table on KILL_TIMEOUT
MDEV-19591
Assertion `!table->pos_in_locked_tables' failed in tc_release_table upon
altering table into S3 under lock.

The problem was that thd->open_tables->pos_in_locked_tables was not reset
when alter table failed to reopen a locked table.

bb-10.2-MDEV-19348 2019-08-08 16:06:37 UTC 2019-08-08
MDEV-19348 MariaBackup prepare fails with corruption on disk

Author: Thirunarayanan Balathandayuthapani
Author Date: 2019-08-08 16:06:37 UTC

MDEV-19348 MariaBackup prepare fails with corruption on disk

Problem:
========
 For alter table.. add index command, MLOG_INDEX_LOAD log ensures that only
index pages are flushed to disk. It doesn't ensure about page 0, page 1, page 2.
During recovery, redo of page0 applies after any index page read. It leads to
failure of decryption of index page.

Solution:
=========
- While parsing of redo log, store the space ids of failed crypt_data initialization
and ignore the pages of tablespace if the key version and space->crypt_data doesn't
match.
- Try to apply the redo log for ignored page after initializing the crypt_data
for the tablespace.

bb-10.5-MDEV-20297 2019-08-08 14:56:44 UTC 2019-08-08
MDEV-20297 sql_list: add begin() and end() for List<T>

Author: Nikita Malyavin
Author Date: 2019-08-08 14:56:44 UTC

MDEV-20297 sql_list: add begin() and end() for List<T>

bb-10.3-anel-MDEV-18323 2019-08-07 14:31:41 UTC 2019-08-07
Handle special characters

Author: Anel Husakovic
Author Date: 2019-08-07 13:58:49 UTC

Handle special characters

bb-10.5-19708 2019-08-07 13:50:22 UTC 2019-08-07
Commit final

Author: Sachin Setiya
Author Date: 2019-08-07 13:50:22 UTC

Commit final

bb-10.1-MDEV-20247 2019-08-07 07:05:04 UTC 2019-08-07
MDEV-20247 Replication hangs with "preparing" and never starts

Author: Thirunarayanan Balathandayuthapani
Author Date: 2019-08-07 07:05:04 UTC

MDEV-20247 Replication hangs with "preparing" and never starts

- The commit ab6dd774082c57f48d998e03655c06b672799b2d wrongly sets the
condition inside innobase_srv_conc_enter_innodb(). Problem is that
InnoDB makes the thread to sleep indefinitely if it is a replication
slave thread.

Thanks to Sujatha Sivakumar for contributing the replication test case.

bb-10.2-sachin 2019-08-06 20:38:25 UTC 2019-08-06
try 5

Author: Sachin Setiya
Author Date: 2019-08-06 20:38:25 UTC

try 5

bb-10.2-MDEV-13416-big-log 2019-08-06 13:31:49 UTC 2019-08-06
MDEV-20060: Failing assertion: srv_log_file_size <= 512ULL << 30 while prepar...

Author: Vlad Lesin
Author Date: 2019-07-29 11:12:19 UTC

MDEV-20060: Failing assertion: srv_log_file_size <= 512ULL << 30 while preparing backup

The general reason why innodb redo log file is limited by 512G is that
log_block_convert_lsn_to_no() returns value limited by 1G. But there is no
need to have unique log block numbers in log group. The fix removes 512G
limit and limits log group size by
(uint32_t maximum value) * (minimum page size), which, in turns, can be
removed if fil_io() is no longer used for innodb redo log io.

10.5-MDEV-19514 2019-08-06 12:00:09 UTC 2019-08-06
MDEV-19514 Defer change buffer merge until pages are requested

Author: Thirunarayanan Balathandayuthapani
Author Date: 2019-08-06 12:00:09 UTC

MDEV-19514 Defer change buffer merge until pages are requested

- Changes all callers of buf_page_get_gen() to buf_index_page_get().
- Removed the ibuf_merge_or_delete_for_pages() from buf_page_io_complete()
- Added the merging of change buffer inside the buf_index_page_get()
- Two test cases are failing in innodb and innodb_zip suite.

bb-10.5-MDEV-16978-without-overlaps 2019-08-05 16:57:28 UTC 2019-08-05
MDEV-16978 Application-time periods: WITHOUT OVERLAPS

Author: Nikita Malyavin
Author Date: 2019-02-12 11:16:02 UTC

MDEV-16978 Application-time periods: WITHOUT OVERLAPS

* The overlaps check is implemented on a handler level per row command. It creates a separate cursor (actually, another handler instance) and caches it inside the original handler, when ha_update_row or ha_insert_row is issued. Cursor closes on unlocking the handler.

* Containing the same key in index means unique constraint violation even in usual terms. So we fetch left and right neighbours and check that they have same key prefix, excluding from the key only the period part. If it doesnt match, then there's no such neighbour, and the check passes. Otherwise, we check if this neighbour intersects with the considered key.

* the check does introduce new error and fails with ER_DUPP_KEY error. This might break REPLACE workflow and should be fixed separately

bb-10.4-serg 2019-08-05 12:47:02 UTC 2019-08-05
remove incorrect #ifdef

Author: Sergei Golubchik
Author Date: 2019-08-05 12:47:02 UTC

remove incorrect #ifdef

bb-10.2-group-min-max 2019-08-03 20:15:44 UTC 2019-08-03
Post-merge fixes for rocksdb.group_min_max test

Author: Sergey Petrunia
Author Date: 2019-08-03 20:15:44 UTC

Post-merge fixes for rocksdb.group_min_max test

- Fix the LooseScan code to support storage engines that return
  HA_ERR_END_OF_FILE if the index scan goes out of provided range
  bounds
- Add a DBUG_EXECUTE_IF("force_group_by",...) to allow a test to
  force a LooseScan
- Adjust rocksdb.group_min_max test not to use features not present
  in MariaDB 10.2 (e.g. optimizer_trace. In MariaDB 10.4 it's present
  but it doesn't meet the assumptions that the test makes about it
- Adjust the test result file:
  = MariaDB doesn't support "Enhanced Loose Scan" that FB/MySQL has
  = MariaDB has different cost calculations.

bb-10.4-sujatha 2019-08-02 12:26:01 UTC 2019-08-02
MDEV-18930 upmerge test

Author: Sujatha
Author Date: 2019-08-02 12:26:01 UTC

MDEV-18930 upmerge test

bb-10.3-MDEV-18546-nikita 2019-08-01 11:49:26 UTC 2019-08-01
add a lot of debug info filterings.

Author: Nikita Malyavin
Author Date: 2019-07-31 09:27:00 UTC

add a lot of debug info filterings.
best with --debug=+d:f,innobase_build_v_templ,row_vers_build_clust_v_col,close_cached_tables,tdc_release_share,tdc_acquire_share,TABLE_SHARE::destroy:T:t:i:n:O,debug

bb-10.2-hf 2019-08-01 10:12:07 UTC 2019-08-01
MDEV-17292 Package the pam_user_map module.

Author: Alexey Botchkov
Author Date: 2019-08-01 10:12:07 UTC

MDEV-17292 Package the pam_user_map module.

The module is compiled and installed in the lib/plugin directory.
User can use it from there or copy to the /lib/security.

bb-10.3-anel-rocksdb_MDEV-17544 2019-07-31 15:24:26 UTC 2019-07-31
Add missing rocksdb results for MDEV-17544

Author: Anel Husakovic
Author Date: 2019-07-31 15:24:26 UTC

Add missing rocksdb results for MDEV-17544

bb-10.4-MDEV-20185 2019-07-30 15:18:31 UTC 2019-07-30
MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

Author: Julius Goryavsky
Author Date: 2019-07-30 15:18:31 UTC

MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

The execution of mtr in the Windows environment fails due to
the fact that the new code from MDEV-18565 does not take into
account the need to add the ".exe" extension to the names of
executable files when searching for pre-requisites that are
needed to run SST scripts (especially when using mariabackup)
and when searching paths to some other Galera utilities.
This patch fixes this flaw.

Also adding paths to the PATH environment variable is now
done with the correct delimiter character.

bb-10.2-MDEV-20185 2019-07-30 15:16:25 UTC 2019-07-30
MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

Author: Julius Goryavsky
Author Date: 2019-07-30 15:16:25 UTC

MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

The execution of mtr in the Windows environment fails due to
the fact that the new code from MDEV-18565 does not take into
account the need to add the ".exe" extension to the names of
executable files when searching for pre-requisites that are
needed to run SST scripts (especially when using mariabackup)
and when searching paths to some other Galera utilities.
This patch fixes this flaw.

Also adding paths to the PATH environment variable is now
done with the correct delimiter character.

322 2019-07-30 15:16:25 UTC 2019-07-30
MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

Author: Julius Goryavsky
Author Date: 2019-07-30 15:16:25 UTC

MDEV-20185: Windows: Use of uninitialized value $bpath in string eq

The execution of mtr in the Windows environment fails due to
the fact that the new code from MDEV-18565 does not take into
account the need to add the ".exe" extension to the names of
executable files when searching for pre-requisites that are
needed to run SST scripts (especially when using mariabackup)
and when searching paths to some other Galera utilities.
This patch fixes this flaw.

Also adding paths to the PATH environment variable is now
done with the correct delimiter character.

bb-10.3-hf 2019-07-30 11:54:43 UTC 2019-07-30
Test fixed.

Author: Alexey Botchkov
Author Date: 2019-07-30 11:54:43 UTC

Test fixed.

bb-10.1-MDEV-18863 2019-07-30 11:45:13 UTC 2019-07-30
MDEV-18863: Galera SST scripts can't read [mysqldN] option groups

Author: Julius Goryavsky
Author Date: 2019-07-30 11:45:13 UTC

MDEV-18863: Galera SST scripts can't read [mysqldN] option groups

Some users and some scripts (for example, mysqld_multi.sh) use special
option groups with names like [mysqld1], [mysqld2], ..., [mysqldN].

But SST scripts can't currently fully support these option groups.
The only option group-related value it gets from the server is
--defaults-group-suffix, if that option was set for mysqld when
the server was started.

However, the SST scripts does not get told by the server to read
these option groups, so this means that the SST script will fail
to read options like innodb-data-home-dir when it is in a option
group like [mysqld1]...[mysqldN].

Moreover, SST scripts ignore many parameters that can be passed
to them explicitly and cannot transfer them further, for example,
to the input of mariabackup utility. Ideally, we want to transfer
all the parameters of the original mysqld call to utilities such
as mariabackup, however the SST script does not receive these
parameters from the server and therefore cannot transfer them to
mariabackup.

To correct these shortcomings, we need to transfer to the scripts
all of the parameters of the original mysqld call, and in the SST
scripts themselves provide for the transfer all of these parameters
to utilities such as mariabackup. To prevent these parameters from
mixing with the script's own parameters, they should be transferred
to SST script after the special option "--mysqld-args", followed by
the string argument with the original parameters, as it received by
the mysqld call at the time of launch (further all these parameters
will be passed to mariabackup, for example).

In addition, the SST scripts themselves must be refined so that
they can read the parameters from the user-selected group, not just
from the global mysqld configuration group. And also so that they
can receive the parameters (which important for their work) as
command-line arguments.

bb-10.2-MDEV-16932 2019-07-30 08:39:12 UTC 2019-07-30
MDEV-16932: ASAN heap-use-after-free in my_charlen_utf8 / my_well_formed_char...

Author: Oleksandr Byelkin
Author Date: 2019-05-14 12:01:15 UTC

MDEV-16932: ASAN heap-use-after-free in my_charlen_utf8 / my_well_formed_char_length_utf8 on 2nd execution of SP with ALTER trying to add bad CHECK

Make automatic name generation during execution (not prepare).

Check result of memory allocation operation.

bb-10.4-sachin 2019-07-29 22:12:21 UTC 2019-07-29
MDEV-19848 Server crashes in check_vcol_forward_refs upon INSERT DELAYED into...

Author: Sachin Setiya
Author Date: 2019-07-29 22:11:42 UTC

MDEV-19848 Server crashes in check_vcol_forward_refs upon INSERT DELAYED into table with long blob key

There are 2 issues

  1st:- in make_new_field when we & into new field flag we forget
  LONG_UNIQUE_HASH_FIELD Flag.

  2nd:- We are calling parse_vcol_defs on keyinfo , but they are not in right
  form. We should call setup_keyinfo_hash_all before calling parse_vcol_defs

bb-10.4-spider-ks 2019-07-29 05:20:44 UTC 2019-07-29
MDEV-20179 Server hangs on shutdown during installation of Spider

Author: Kentoku SHIBA
Author Date: 2019-07-29 05:20:44 UTC

MDEV-20179 Server hangs on shutdown during installation of Spider

bb-10.4-release 2019-07-28 11:45:34 UTC 2019-07-28
Do not compile socket IO code in WolfSSL

Author: Vladislav Vaintroub
Author Date: 2019-06-30 22:43:26 UTC

Do not compile socket IO code in WolfSSL

We use own IO callbacks from server code anyway.

10.5-mdev8306 2019-07-27 19:02:41 UTC 2019-07-27
Tests added for non-merged semi-join

Author: varun
Author Date: 2019-07-27 18:52:34 UTC

Tests added for non-merged semi-join

bb-10.5-wlad-2 2019-07-27 14:04:53 UTC 2019-07-27
MDEV-16424 - do not io_destroy while io_context is used by io_getenv

Author: Vladislav Vaintroub
Author Date: 2019-07-27 14:04:53 UTC

MDEV-16424 - do not io_destroy while io_context is used by io_getenv

bb-10.4-wlad-wolfssl 2019-07-26 15:08:38 UTC 2019-07-26
Do not compile socket IO code in WolfSSL

Author: Vladislav Vaintroub
Author Date: 2019-06-30 22:43:26 UTC

Do not compile socket IO code in WolfSSL

We use own IO callbacks from server code anyway.

bb-10.2-release 2019-07-26 10:54:09 UTC 2019-07-26
Merge branch '10.1' into 10.2

Author: Oleksandr Byelkin
Author Date: 2019-07-26 10:54:09 UTC

Merge branch '10.1' into 10.2

bb-10.1-release 2019-07-26 08:48:12 UTC 2019-07-26
Merge branch 'merge-tokudb-5.6' into 10.1

Author: Oleksandr Byelkin
Author Date: 2019-07-26 08:48:12 UTC

Merge branch 'merge-tokudb-5.6' into 10.1

bb-10.4-MW-336 2019-07-26 00:55:28 UTC 2019-07-26
Fix for MW-336 test

Author: Julius Goryavsky
Author Date: 2019-07-26 00:55:28 UTC

Fix for MW-336 test

bb-10.1-anel-MDEV-19761 2019-07-25 06:50:29 UTC 2019-07-25
MDEV-19761 - Before Trigger not processed for Not Null Column

Author: Anel Husakovic
Author Date: 2019-06-25 07:05:41 UTC

MDEV-19761 - Before Trigger not processed for Not Null Column

bb-10.2-serg 2019-07-24 13:26:29 UTC 2019-07-24
C/C test

Author: Sergei Golubchik
Author Date: 2019-07-24 13:26:29 UTC

C/C test

bb-5.5-release 2019-07-24 12:00:43 UTC 2019-07-24
BUG#28642318: POINT IN TIME RECOVERY USING MYSQLBINLOG BROKEN WITH TEMPORARY ...

Author: Nisha Gopalakrishnan
Author Date: 2019-04-17 10:06:29 UTC

BUG#28642318: POINT IN TIME RECOVERY USING MYSQLBINLOG BROKEN WITH TEMPORARY TABLE -> ERRORS

Analysis
========
Point in time recovery using mysqlbinlog containing queries
operating on temporary tables results in an error.

While writing the query log event in the binary log, the
thread id used for execution of DROP TABLE and DELETE commands
were incorrect. The thread variable 'thread_specific_used'
is used to determine whether a specific thread id is to used
while executing the statements i.e using 'SET
@@session.pseudo_thread_id'. This variable was not set
correctly for DROP TABLE query and was never set for DELETE
query. The thread id is important for temporary tables
since the tables are session specific. DROP TABLE and DELETE
queries executed using a wrong thread id resulted in errors
while applying the queries generated by mysqlbinlog utility.

Fix
===
Set the 'thread_specific_used' THD variable for DROP TABLE and
DELETE queries.

ReviewBoard: 21833

bb-5.5-serg 2019-07-24 12:00:43 UTC 2019-07-24
BUG#28642318: POINT IN TIME RECOVERY USING MYSQLBINLOG BROKEN WITH TEMPORARY ...

Author: Nisha Gopalakrishnan
Author Date: 2019-04-17 10:06:29 UTC

BUG#28642318: POINT IN TIME RECOVERY USING MYSQLBINLOG BROKEN WITH TEMPORARY TABLE -> ERRORS

Analysis
========
Point in time recovery using mysqlbinlog containing queries
operating on temporary tables results in an error.

While writing the query log event in the binary log, the
thread id used for execution of DROP TABLE and DELETE commands
were incorrect. The thread variable 'thread_specific_used'
is used to determine whether a specific thread id is to used
while executing the statements i.e using 'SET
@@session.pseudo_thread_id'. This variable was not set
correctly for DROP TABLE query and was never set for DELETE
query. The thread id is important for temporary tables
since the tables are session specific. DROP TABLE and DELETE
queries executed using a wrong thread id resulted in errors
while applying the queries generated by mysqlbinlog utility.

Fix
===
Set the 'thread_specific_used' THD variable for DROP TABLE and
DELETE queries.

ReviewBoard: 21833

bb-10.2-midenok2 2019-07-22 12:40:06 UTC 2019-07-22
MDEV-20015 Assertion `!in_use->is_error()' failed in TABLE::update_virtual_field

Author: midenok
Author Date: 2019-07-22 12:38:37 UTC

MDEV-20015 Assertion `!in_use->is_error()' failed in TABLE::update_virtual_field

Preserve and restore statement DA.

bb-10.1-andrei 2019-07-21 17:41:28 UTC 2019-07-21
MDEV-20091 DROP TEMPORARY table is logged despite no CREATE was logged

Author: Andrei Elkin
Author Date: 2019-07-20 19:02:55 UTC

MDEV-20091 DROP TEMPORARY table is logged despite no CREATE was logged

MDEV-5589 commit set up a policy to skip DROP TEMPORARY TABLE
binary logging in case the target table has not been "CREATEed" in
binlog (no CREATE Query-log-event was logged into the binary log).

It turns out that

1. the rule did not cover non-existing table DROPped with IF-EXISTS
   clause. The logged-create knowledge for the non-existing one does
   not even need MDEV-5589 patch, and

2. connection close disobeys it to trigger automatic DROP-IF-EXISTS
   binlogging.

Either 1 or 2 or even both is/are also responsible for unexpected
binlog records observed in MDEV-17863, actually rendering
a referred @@global.read_only irrelevant as far as the described stored
procedure definition *and* the ROW binlog-format are concerned.

bb-10.5-MDEV-18565 2019-07-19 10:39:20 UTC 2019-07-19
Switch Perl DBI scripts from DBD::mysql to DBD::MariaDB driver

Author: Pali
Author Date: 2019-06-07 14:30:27 UTC

Switch Perl DBI scripts from DBD::mysql to DBD::MariaDB driver

Perl DBD::MariaDB driver is available CPAN and is already used in
production environment.

bb-10.3-robert 2019-07-18 12:49:40 UTC 2019-07-18
MDEV-16490: It's possible to make a system versioned table without any versio...

Author: Nikita Malyavin
Author Date: 2018-06-22 13:26:43 UTC

MDEV-16490: It's possible to make a system versioned table without any versioning field

* do not allow versioned table to be without versioned (non-system) fields
* prohibit changing field versioning, when removing table versioning

bb-10.2-MDEV-18565 2019-07-17 08:45:09 UTC 2019-07-17
MDEV-18565: Galera mtr-suite fails if galera library is not installed

Author: Julius Goryavsky
Author Date: 2019-07-16 09:33:11 UTC

MDEV-18565: Galera mtr-suite fails if galera library is not installed

Currently, running mtr with an incorrect (for example, new or
obsolete) version of wsrep_provider (for example, with the 26
version of libgalera_smm.so) leads to the failure of tests in
several suites with vague error diagnostics.

As for the galera_3nodes suite, the mtr also does not effectively
check all the prerequisites after merge with MDEV-18426 fixes.
For example, tests that using mariabackup do not check for presence
of ss and socat/nc. This is due to improper handling of relative
paths in mtr scripts.

In addition, some tests in different suites can be run without
setting the environment variables such as MTR_GALERA_TFMT, XBSTREAM,
and so on.

To eliminate all these issues, this patch makes the following changes:

1. Added auxiliary wsrep_mtr_check utility (which located in the
mysql-test/lib/My/SafeProcess subdirectory), which compares the
versions of the wsrep API that used by the server and by the wsrep
provider library, and it does this comparison safely, without
accessing the API if the versions do not match.

2. All checks related to the presence of mariabackup and utilities
that necessary for its operation transferred from the local directories
of different mtr suites (from the suite.pm files) to the main suite.pm
file. This not only reduces the amount of code and eliminates duplication
of identical code fragments, but also avoids problems due to the inability
of mtr to consider relative paths to include files when checking skip
combinations.

3. Setting the values of auxiliary environment variables that
are necessary for Galera, SST scripts and mariabackup (to work
properly) is moved to the main mysql-test-run.pl script, so as
not to duplicate this code in different suites, and to avoid
partial corrections of the same errors for different suites
(while other suites remain uncorrected).

4. Fixed duplication of the have_file_key_management.inc and
have_filekeymanagement.inc files between different suites,
these checks are also transferred to the top level.

5. Added garbd presence check and garbd path variable.

https://jira.mariadb.org/browse/MDEV-18565

bb-10.4-MDEV-18565 2019-07-17 08:25:59 UTC 2019-07-17
MDEV-18565: Galera mtr-suite fails if galera library is not installed

Author: Julius Goryavsky
Author Date: 2019-07-16 10:48:04 UTC

MDEV-18565: Galera mtr-suite fails if galera library is not installed

Currently, running mtr with an incorrect (for example, new or
obsolete) version of wsrep_provider (for example, with the 26
version of libgalera_smm.so) leads to the failure of tests in
several suites with vague error diagnostics.

As for the galera_3nodes suite, the mtr also does not effectively
check all the prerequisites after merge with MDEV-18426 fixes.
For example, tests that using mariabackup do not check for presence
of ss and socat/nc. This is due to improper handling of relative
paths in mtr scripts.

In addition, some tests in different suites can be run without
setting the environment variables such as MTR_GALERA_TFMT, XBSTREAM,
and so on.

To eliminate all these issues, this patch makes the following changes:

1. Added auxiliary wsrep_mtr_check utility (which located in the
mysql-test/lib/My/SafeProcess subdirectory), which compares the
versions of the wsrep API that used by the server and by the wsrep
provider library, and it does this comparison safely, without
accessing the API if the versions do not match.

2. All checks related to the presence of mariabackup and utilities
that necessary for its operation transferred from the local directories
of different mtr suites (from the suite.pm files) to the main suite.pm
file. This not only reduces the amount of code and eliminates duplication
of identical code fragments, but also avoids problems due to the inability
of mtr to consider relative paths to include files when checking skip
combinations.

3. Setting the values of auxiliary environment variables that
are necessary for Galera, SST scripts and mariabackup (to work
properly) is moved to the main mysql-test-run.pl script, so as
not to duplicate this code in different suites, and to avoid
partial corrections of the same errors for different suites
(while other suites remain uncorrected).

4. Fixed duplication of the have_file_key_management.inc and
have_filekeymanagement.inc files between different suites,
these checks are also transferred to the top level.

5. Added garbd presence check and garbd path variable.

https://jira.mariadb.org/browse/MDEV-18565

bb-10.4-galera 2019-07-16 06:21:26 UTC 2019-07-16
MDEV-19970 Galera test failure on galera_sr.galera-features#56

Author: Jan Lindström
Author Date: 2019-07-16 06:21:26 UTC

MDEV-19970 Galera test failure on galera_sr.galera-features#56

Move test to big_test as it takes significant amount of time and
add wait to get slave threads start and setup to replicate.

bb-10.2-MDEV-19746 2019-07-15 04:02:18 UTC 2019-07-15
Try #2

Author: Jan Lindström
Author Date: 2019-07-15 04:02:18 UTC

Try #2

bb-10.1-MDEV-18778 2019-07-12 05:23:34 UTC 2019-07-12
Fix typo.

Author: Jan Lindström
Author Date: 2019-07-12 05:23:34 UTC

Fix typo.

bb-10.5-bar-m20016 2019-07-12 03:53:55 UTC 2019-07-12
MDEV-20016 Add MariaDB_DATA_TYPE_PLUGIN

Author: Alexander Barkov
Author Date: 2019-07-10 13:15:52 UTC

MDEV-20016 Add MariaDB_DATA_TYPE_PLUGIN

bb-10.5-bar-mdev20042 2019-07-11 10:50:39 UTC 2019-07-11
MDEV-20042 Implement EXTRA2_FIELD_DATA_TYPE_INFO in FRM

Author: Alexander Barkov
Author Date: 2019-07-11 10:50:39 UTC

MDEV-20042 Implement EXTRA2_FIELD_DATA_TYPE_INFO in FRM

bb-mdev-274 2019-07-10 15:14:34 UTC 2019-07-10
MDEV-274 The data type for IPv6/IPv4 addresses in MariaDB

Author: Alexander Barkov
Author Date: 2019-04-04 12:36:08 UTC

MDEV-274 The data type for IPv6/IPv4 addresses in MariaDB

bb-10.1-MDEV-19978 2019-07-10 11:48:56 UTC 2019-07-10
MDEV-19978 Page read from tablespace is corrupted

Author: Thirunarayanan Balathandayuthapani
Author Date: 2019-07-10 11:48:56 UTC

MDEV-19978 Page read from tablespace is corrupted

Problem:
=======
  Checksum fields can have value as zero. In that case, InnoDB falsely
consider that page should be all zeroes. It leads to wrong detection of page
corruption.

Solution:
========
 Remove the condition that checks if checksum fields are zero then
page should be all zeroes.

bb-10.2-MDEV-18027 2019-07-10 11:40:54 UTC 2019-07-10
MDEV-18027: Running out of file descriptors and eventual crash

Author: Oleksandr Byelkin
Author Date: 2019-07-10 11:40:54 UTC

MDEV-18027: Running out of file descriptors and eventual crash

For automatic number of opened files limit take into account number of table instances for table cache

bb-10.3-sysprg-vcheck 2019-07-09 14:54:08 UTC 2019-07-09
Improved error messages and added another path to the version check utility

Author: Julius Goryavsky
Author Date: 2019-07-09 14:54:08 UTC

Improved error messages and added another path to the version check utility

bb-10.5-nikita 2019-07-09 11:25:35 UTC 2019-07-09
Add const qualifiers to Field::cmp, Field::cmp_max and Field::cmp_binary

Author: Nikita Malyavin
Author Date: 2019-07-09 11:20:00 UTC

Add const qualifiers to Field::cmp, Field::cmp_max and Field::cmp_binary

bb-10.4-bar 2019-07-09 11:10:45 UTC 2019-07-09
MDEV-19996 Bison grammar: turn singe-character operators into <kwd>

Author: Alexander Barkov
Author Date: 2019-07-09 11:10:45 UTC

MDEV-19996 Bison grammar: turn singe-character operators into <kwd>

bb-10.5-varun 2019-07-09 09:44:19 UTC 2019-07-09
Correcting the value of top_join_tab_count, to not include inner tables of se...

Author: varun
Author Date: 2019-07-09 09:44:19 UTC

Correcting the value of top_join_tab_count, to not include inner tables of semi-join nest for the tables at the top level

bb-10.5-midenok 2019-07-08 11:58:20 UTC 2019-07-08
Fix test case for MDEV-16222

Author: midenok
Author Date: 2019-07-08 11:58:18 UTC

Fix test case for MDEV-16222

* Mitigate race candition when got_no_such_table remains uncleared.
* Remove warnings about deprecated SELECT .. FROM .. INTO ...

MDEV-16222 Assertion `0' failed in row_purge_remove_sec_if_poss_leaf on table with virtual columns and indexes

bb-10.4-midenok2 2019-07-08 11:55:59 UTC 2019-07-08
MDEV-16222 Assertion `0' failed in row_purge_remove_sec_if_poss_leaf on table...

Author: midenok
Author Date: 2019-06-25 07:53:33 UTC

MDEV-16222 Assertion `0' failed in row_purge_remove_sec_if_poss_leaf on table with virtual columns and indexes

Cause
Stale thd->m_stmt_da->m_sql_errno which is from different invocation.

Fix
Reset error state before attempt to open table.

bb-10.1-varun 2019-07-08 06:07:34 UTC 2019-07-08
MDEV-17963: Assertion `field_pos < field_count' failed in Protocol_text::stor...

Author: varun
Author Date: 2019-07-08 06:07:34 UTC

MDEV-17963: Assertion `field_pos < field_count' failed in Protocol_text::store, Assertion `field_handlers == 0 || field_pos < field_count'

The problem was that sp_head::MULTI_RESULTS was not set correctly for ANALYZE statement
with SELECT ... INTO variable.
This is a follow up fix for MDEV-7023

bb-10.2-mdev19830 2019-07-07 15:17:17 UTC 2019-07-07
Update RocksDB the revision that fixes the compile error on power8

Author: Sergey Petrunia
Author Date: 2019-07-07 15:03:52 UTC

Update RocksDB the revision that fixes the compile error on power8

bb-10.4-elenst 2019-07-07 10:35:36 UTC 2019-07-07
force-enable debug output in the pam plugin

Author: Sergei Golubchik
Author Date: 2019-07-04 14:18:59 UTC

force-enable debug output in the pam plugin

bb-10.1-hf 2019-07-06 07:29:28 UTC 2019-07-06
Make Win compiler happy.

Author: HF
Author Date: 2019-07-06 07:29:28 UTC

Make Win compiler happy.

bb-10.5-sujatha 2019-07-05 15:22:25 UTC 2019-07-05
MDEV-11154: Write_on_release_cache(log_event.cc) function will not write "COM...

Author: Sujatha
Author Date: 2019-07-05 15:22:25 UTC

MDEV-11154: Write_on_release_cache(log_event.cc) function will not write "COMMIT", if use "mysqlbinlog ... | mysql ..."

Problem:
=======
Executing command, "mysqlbinlog --read-from-remote-server --host='xx.xx.xx.xx'
--port=3306 --user=xxx --password=xxx --database=mysql --to-last-log
mysql-bin.000001 --start-position=1098699 --stop-never |mysql -uxxx -pxxx", we
found that last data read from remote couldn't commit.

Analysis:
========
The purpose of 'Write_on_release_cache' is that the contents of the Cache will
automatically be written to a dedicated result file on destruction. Flush
operation on the result file is controlled by a flag 'FLUSH_F'. Events which
require force flush upon their destruction will have to enable this
'Write_on_release_cache::FLUSH_F'. At present the 'FLUSH_F' flag is defined as
an enum as shown below.

enum flag
{
  FLUSH_F
};

Since 'FLUSH_F' is the first member without initialization it get the default
value '0'. Because of this the following flush condition never succeeds.

if (m_flags & FLUSH_F)
  fflush(m_file);

At present the file gets flushed only during my_fclose(result_file) operation.
When continuous streaming is enabled through --stop-never option it never gets
flushed and hence events are not replicated.

Fix:
===
Initialize the enum value to non zero value.

bb-10.3-galera 2019-07-05 05:44:47 UTC 2019-07-05
Merge branch 'tempesta-tech-sysprg/10.3-MDEV-18565' into 10.3

Author: Jan Lindström
Author Date: 2019-07-05 05:44:47 UTC

Merge branch 'tempesta-tech-sysprg/10.3-MDEV-18565' into 10.3

bb-10.5-MDEV-18582 2019-07-03 14:31:20 UTC 2019-07-03
MDEV-18582: Extend SHOW STATUS LIKE 'Innodb_%'

Author: Marko Mäkelä
Author Date: 2019-07-03 14:31:20 UTC

MDEV-18582: Extend SHOW STATUS LIKE 'Innodb_%'

Many InnoDB internal variables and counters were only exposed
in an unstructured fashion via SHOW ENGINE INNODB STATUS.

Expose more variables via SHOW STATUS. Many of these were
exported in XtraDB.

Also, introduce SHOW_SIZE_T and use the proper size for
exporting the InnoDB variables.

Remove some unnecessary indirection via export_vars, and
bind some variables directly.

dict_sys_t::rough_size(): Replaces dict_sys_get_size()
and includes the hash table sizes.

This is based on a contribution by Tony Liu from ServiceNow.

bb-10.4-robert 2019-07-01 14:53:35 UTC 2019-07-01
MDEV-19696 - Cleanup gcc sync builtins

Author: Robert Bindar
Author Date: 2019-07-01 10:21:07 UTC

MDEV-19696 - Cleanup gcc sync builtins

1100 of 399 results

Other repositories

Name Last Modified
lp:maria 2 hours ago
lp:~maria-captains/maria/+git/connector-c 2018-01-08
12 of 2 results
You can't create new repositories for MariaDB.