- 02 Sep, 2018 1 commit
-
-
Otto Kekäläinen authored
-
- 01 Sep, 2018 2 commits
-
-
Otto Kekäläinen authored
-
Otto Kekäläinen authored
-
- 31 Aug, 2018 4 commits
-
-
Otto Kekäläinen authored
-
Otto Kekäläinen authored
-
Otto Kekäläinen authored
-
Otto Kekäläinen authored
-
- 29 Aug, 2018 1 commit
-
-
Otto Kekäläinen authored
This reverts commit a89a6e4f. We cannot blindly assume all CPUs on all hosts are available for building. For example our own buildbot.mariadb.org builders go amok if everey host CPU core is used in parallel for every build on a host. This option should be configurable, and in fact it already is via the parallel=N setting in DEB_BUILD_OPTIONS. See debian/rules for details.
-
- 28 Aug, 2018 3 commits
-
-
Jacob Mathew authored
During a server restart that follows a server crash, there may be error messages that indicate that certain system tables are marked as crashed and may be corrupted. Upon checking the system tables that are marked as crashed, it may be found that there is no corruption that needs repair. However, the error messages that are issued imply that the user needs to nevertheless manually repair the system tables that were marked as crashed. These issues have been moved to a separate bug MDEV-17068. MDEV-16250 addresses the work to make the Spider system tables crash safe. This work involves the following changes in 10.4: - Changes to the install_spider.sql script to change the storage engine for the Spider system tables to Aria. This is implemented in such a way as to allow the script to be run repeatedly without any harm or errors. - Changes to the init_spider.inc script that is run during initialization of every test in the Spider test suites. This script now uses the Aria storage engine for the Spider system tables in MariaDB Server 10.4 and later releases. - Added a test to the Spider test suite to display the storage engine of each Spider system table, to verify that the correct storage engine is used. Author: Jacob Mathew. Reviewer: Kentoku Shiba. Merged: Commit 73fac2a5 from branch bb-10.4-MDEV-16250
-
Monty authored
MDEV-17068 mysql system table is marked as crashed and should be repaired after the server crashes or is killed - Changed ERROR to WARNING for MyISAM/Aria message that are warnings in the check utilities. This affects for example "client is using or hasn't closed the table properly". - Print "Table is fixed" if check succeded in fixing the table.
-
Monty authored
-
- 27 Aug, 2018 1 commit
-
-
Jacob Mathew authored
During a server restart that follows a server crash, there may be error messages that indicate that certain system tables are marked as crashed and may be corrupted. Upon checking the system tables that are marked as crashed, it may be found that there is no corruption that needs repair. However, the error messages that are issued imply that the user needs to nevertheless manually repair the system tables that were marked as crashed. These issues have been moved to a separate bug MDEV-17068. MDEV-16250 addresses the work to make the Spider system tables crash safe. This work involves the following changes in 10.4: - Changes to the install_spider.sql script to change the storage engine for the Spider system tables to Aria. This is implemented in such a way as to allow the script to be run repeatedly without any harm or errors. - Changes to the init_spider.inc script that is run during initialization of every test in the Spider test suites. This script now uses the Aria storage engine for the Spider system tables in MariaDB Server 10.4 and later releases. - Added a test to the Spider test suite to display the storage engine of each Spider system table, to verify that the correct storage engine is used. Author: Jacob Mathew. Reviewer: Kentoku Shiba.
-
- 24 Aug, 2018 1 commit
-
-
Varun Gupta authored
Moved the checks for arguments validation of Item_name_const from the constructor to Create_func_name_const::create_2_arg Also reverted the fix bf1c53e9
-
- 20 Aug, 2018 3 commits
-
-
Monty authored
-
Monty authored
The problem was that when a mysql.proc table was opened for reading it was added to the current Aria transaction context but never properly deleted from it. Normally this isn't a problem, except if the mysql.proc table is closed before the transaction ended, which happened in this test case. Fixed by removing mysql.proc from the transaction context before closing the table.
-
Vladislav Vaintroub authored
-
- 18 Aug, 2018 1 commit
-
-
Alexander Barkov authored
-
- 17 Aug, 2018 2 commits
-
-
Varun Gupta authored
For Item name_const , we should never do typecast it to Item_field because we always expect it to be a constant value. So instead of checking the type() its better to introduce a function in the Item class get_item_field, which would return the item_field object for the item which have type of FIELD_ITEM
-
Monty authored
This was introduced by two pointers I added to TRN as part of MDEV-16421 Make system tables crash safe - Added code to ensure that trn_prev is not pointing to wrong object - A lot of new asserts and more code comments - Simplified code in _ma_trnman_end_trans_hook() - New back link allowed me to remove a loop
-
- 16 Aug, 2018 10 commits
-
-
Vladislav Vaintroub authored
Changed bootstrap scripts, adjusted result files.
-
Marko Mäkelä authored
-
Marko Mäkelä authored
-
Marko Mäkelä authored
-
Marko Mäkelä authored
-
Marko Mäkelä authored
Amend commit b853b4fd that was reverted in commit 29150e23. recv_parse_log_recs(): Do check for corrupted redo log or file system before checking for len==0, but only read *ptr if it is not past the end of the buffer (end_ptr). recv_parse_log_rec(): Report incorrect redo log type in a consistent way with recv_parse_or_apply_log_rec_body(). This is a follow-up to commit f30c5af4.
-
Marko Mäkelä authored
The Pool poisoning that was introduced in MDEV-15030 introduced race conditions in AddressSanitizer builds, because concurrent poisoning and unpoisoning were not prevented by any synchronization primitive. Pool::get(): Protect the unpoisoning by m_lock_strategy. Pool::mem_free(): Protect the poisoning by m_lock_strategy. Pool::putl(): Renamed from put(), because now the caller is responsible for invoking m_lock_strategy.
-
Marko Mäkelä authored
If trx_free() and trx_create_low() were called while a call to trx_reference() was pending, we could get a reference to a wrong transaction object. trx_reference(): Return NULL if the trx->id no longer matches. lock_trx_release_locks(): Assign trx->id = 0, so that trx_reference() will not return a reference to this object. trx_cleanup_at_db_startup(): Assign trx->id = 0. assert_trx_is_free(): Assert !trx->n_ref. Assert trx->id == 0, now that it will be cleared as part of a transaction commit.
-
Marko Mäkelä authored
Also, replace reverse iteration with forward iteration. lock_table_has(): Remove a redundant condition.
-
Marko Mäkelä authored
Allocate trx->lock.rec_pool and trx->lock.table_pool directly from trx_t. Remove unnecessary use of std::vector. In order to do this, move some definitions from lock0priv.h to lock0types.h, so that ib_lock_t will not be an opaque type.
-
- 15 Aug, 2018 4 commits
-
-
Alexander Barkov authored
The patch for MDEV-16928 added a few new asserts to check that time, date, datetime values are valid and consistent after initialization. One of the new asserts caught an improper initialization in Time::make_from_datetime_with_days_diff() (the former function calc_datetime_days_diff()). If the YYYYMM part is not zero after unpack time we have an out-of-range TIME value.
-
Daniel Bartholomew authored
-
Alexander Barkov authored
Fixing the bug (in the code from MDEV-16910)
-
Vladislav Vaintroub authored
-
- 14 Aug, 2018 7 commits
-
-
Marko Mäkelä authored
row_log_table_get_pk_col(): Replace a condition that was inadvertently removed in MDEV-16365. PRIMARY KEY columns are never allowed to be NULL, and failure to enforce the constraint caused a null pointer to be dereferenced in mem_heap_dup().
-
Daniel Bartholomew authored
-
Vladislav Vaintroub authored
-
Michael Widenius authored
Make all system tables in mysql directory of type engine=Aria Privilege tables are using transactional=1 Statistical tables are using transactional=0, to allow them to be quickly updated with low overhead. Help tables are also using transactional=0 as these are only updated at init time. Other changes: - Aria store engine is now a required engine - Update comment for Aria tables to reflect their new usage - Fixed that _ma_reset_trn_for_table() removes unlocked table from transaction table list. This was needed to allow one to lock and unlock system tables separately from other tables, for example when reading a procedure from mysql.proc - Don't give a warning when using transactional=1 for engines that is using transactions. This is both logical and also to avoid warnings/errors when doing an alter of a privilege table to InnoDB. - Don't abort on warnings from ALTER TABLE for changes that would be accepted by CREATE TABLE. - New created Aria transactional tables are marked as not movable (as they include create_rename_lsn). - bootstrap.test was changed to kill orignal server, as one can't anymore have two servers started at same time on same data directory and data files. - Disable maria.small_blocksize as one can't anymore change aria block size after system tables are created. - Speed up creation of help tables by using lock tables. - wsrep_sst_resync now also copies Aria redo logs.
-
Monty authored
-
Monty authored
-
Michael Widenius authored
-