- 28 May, 2019 2 commits
-
-
Marko Mäkelä authored
C++11 defines the singly-linked std::forward_list. Prefer it to the doubly-linked std::list in cases where we dot really need it. Also, clean up some code. dict_index_remove_from_v_col_list(): Remove. Obsoleted by dict_index_t::detach_columns(). There is no std::forward_list::push_back(). Use push_front() instead. The ordering does not really matter. dict_v_col_t::n_v_indexes: Added. There is no std::forward_list::size(), and trx_undo_log_v_idx() needs to know the size. rtr_info_track_t::rtr_active: Encapsulate. There really was no justification for the pointer indirection.
-
Marko Mäkelä authored
-
- 27 May, 2019 3 commits
-
-
Vladislav Vaintroub authored
Log_event_writer::encrypt_and_write() can pass NULL pointer as source buffer for the encryption. WolfSSL EVP_CipherUpdate(), rightfully rejects this as invalid parameter. Fix Log_event_writer::encrypt_and_write() and check, with assertion, that src parameterm is sane in MyCTX::update()
-
Jan Lindström authored
Remove unnecessary select of provider name as it could be anything and be located on different directories (i.e. it full name could be different).
-
Marko Mäkelä authored
Fix errors caught by clang-7 in the encrypted variants of the tests innodb.innodb-table-online innodb.innodb-index-online
-
- 25 May, 2019 2 commits
-
-
Vladislav Vaintroub authored
In Wolfcrypt, output length after CTR encryption is not the same as input length. This is different from openssl and this makes unit test aes-t fail. So disable CTR for now.
-
Vladislav Vaintroub authored
MDEV-19581 Valgrind error with WolfSSL and encrypted binlog WolfSSL can read memory out of bounds in EVP_CipherUpdate() in decrypt/NOPAD mode, when the input length is not multiple of AES block size. The workaround ensures that input will have some padding at the end by having slightly larger allocated buffer, or padding the structures with 16 more bytes.
-
- 24 May, 2019 1 commit
-
-
Marko Mäkelä authored
There is only one InnoDB crash recovery subsystem. Allocating recv_sys statically removes one level of pointer indirection and makes code more readable, and removes the awkward initialization of recv_sys->dblwr. recv_sys_t::create(): Replaces recv_sys_init(). recv_sys_t::debug_free(): Replaces recv_sys_debug_free(). recv_sys_t::close(): Replaces recv_sys_close(). recv_sys_t::add(): Replaces recv_add_to_hash_table(). recv_sys_t::empty(): Replaces recv_sys_empty_hash().
-
- 22 May, 2019 5 commits
-
-
Vladislav Vaintroub authored
-
Vladislav Vaintroub authored
- Add new submodule for WolfSSL - Build and use wolfssl and wolfcrypt instead of yassl/taocrypt - Use HAVE_WOLFSSL instead of HAVE_YASSL - Increase MY_AES_CTX_SIZE, to avoid compile time asserts in my_crypt.cc (sizeof(EVP_CIPHER_CTX) is larger on WolfSSL)
-
Monty authored
-
Marko Mäkelä authored
trx_rseg_array_init(): Using the 10.4 specific MLOG_MEMSET record, clear the entire TRX_SYS_WSREP_XID_INFO field.
-
Marko Mäkelä authored
-
- 21 May, 2019 7 commits
-
-
Oleksandr Byelkin authored
Check locking options and brackets combinations.
-
Samuel Thibault authored
-
Daniel Bartholomew authored
-
Daniele Sciascia authored
Bootstrapping a new cluster from a backup created from a MariaDB version prior to 10.3.5 may result in error "SST position can't be set in past" when attempting to join additional nodes. The problem stems from the fact that when reading the wsrep position from InnoDB, the position is looked up in two places: the TRX_SYS page, where versions prior to 10.3.5 used to store WSREP's position; and rollback segments, this is where newer versions store the position. When starting a new cluster, the starting seqno is 0 and a new cluster UUID is generated. This is persisted in rollback segments, but the old UUID and seqno are not cleared from TRX_SYS page. Subsequently, when reading back the position, trx_rseg_read_wsrep_checkpoint() is going to return the maximum seqno found in both TRX_SYS page and rollback segments. So in the case of a newly bootstrapped cluster, it's always going to return the old cluster information. The fix consists of changing trx_rseg_read_wsrep_checkpoint() so that only rollback segments are looked up. On startup, position is read from the TRX_SYS page, and if present, it is copied to rollback segments (unless a newer position is already present in the rollback segments). Finally the position stored in TRX_SYS page is cleared.
-
Alexander Barkov authored
-
Alexander Barkov authored
-
Eugene Kosov authored
MDEV-19524 Server crashes in Bitmap<64u>::is_clear_all / Field_longstr::csinfo_change_allows_instant_alter compare_keys_but_name(): reorder checks to ensure that new_field->field != NULL inside Field::is_equal()
-
- 20 May, 2019 6 commits
-
-
Marko Mäkelä authored
-
Aleksey Midenkov authored
[Closes tempesta-tech/mariadb#572]
-
Eugene Kosov authored
Disallow DATETIME for SYSTEM VERSIONING tables.
-
Marko Mäkelä authored
-
Oleksandr Byelkin authored
-
Eugene Kosov authored
MDEV-19486 Server crashes in row_upd or row_upd_del_mark_clust_rec on REPLACE into a versioned table row_insert_for_mysql(): InnoDB sets values for row_start and row_end. And this function used to return those values to server in ha_innobase::write_row(). This buggy behavior was removed. Also, a piece of code in this function was reformatted. upd_node_t::make_versioned_helper(): Assert that the preallocated size of the update vector is not exceeded.
-
- 19 May, 2019 5 commits
-
-
Oleksandr Byelkin authored
-
Varun Gupta authored
The issue in this case is that we take in account the estimates from quick keys instead of rec_per_key. The estimates for quick keys are better than rec_per_key only if we have ref(const), so we need to check that all keyparts in the ref key are of the type ref(const).
-
Oleksandr Byelkin authored
-
Oleksandr Byelkin authored
-
Oleksandr Byelkin authored
-
- 18 May, 2019 7 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
* add error for truncation of versioned tables: `ER_TRUNCATE_ILLEGAL_VERS` * make a full table open with `tdc_aquire_share` instead of just `ha_table_exists` check test suites run: main, parts, versioning Closes #785
-
Sergei Golubchik authored
-
Robert Bindar authored
Closes #1212
-
Sergei Golubchik authored
-
Alexander Barkov authored
Fixing a test failure tokudb.change_column_varbin_descriptor
-
- 17 May, 2019 2 commits
-
-
Marko Mäkelä authored
Always initialize dict_sys.m_initialised.
-
Sergei Golubchik authored
-