summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Foobb-10.6-vicentiu-MDEV-17796-checkVicențiu Ciorbaru2021-01-181-8/+0
|
* FooVicențiu Ciorbaru2021-01-181-3/+3
|
* Update testcase to cover OFFSET KEYWORDVicențiu Ciorbaru2021-01-182-10/+10
|
* Fix viewVicențiu Ciorbaru2021-01-182-11/+28
|
* Test viewsVicențiu Ciorbaru2021-01-181-0/+49
|
* Update test cases to match OFFSET being reserved as a KEYWORDVicențiu Ciorbaru2021-01-186-6/+6
|
* WIP -> just for backupVicențiu Ciorbaru2021-01-132-36/+210
|
* Order fields must be allocated for temporary tables tooVicențiu Ciorbaru2021-01-131-0/+4
|
* make_aggr_table_info cleanupVicențiu Ciorbaru2021-01-131-2/+2
|
* Exhaustively test new syntaxVicențiu Ciorbaru2021-01-131-8/+200
|
* CleanupVicențiu Ciorbaru2021-01-133-14/+2
| | | | | Remove unneded get_table_join_options. The variable was always passed as 0.
* Initial test caseVicențiu Ciorbaru2021-01-041-0/+209
| | | | TODO: finish test case
* Update syntax to include absent row countVicențiu Ciorbaru2021-01-041-1/+33
|
* WITH TIES basic implementationVicențiu Ciorbaru2020-12-295-20/+71
|
* cleanup: reduce indentation of end_sendVicențiu Ciorbaru2020-12-281-87/+86
| | | | Reorder end_send to exit via return instead of large if-else block.
* Delete unused functionVicențiu Ciorbaru2020-12-281-2/+0
|
* Update scripts!!Vicențiu Ciorbaru2020-12-282-2/+2
|
* Tentative fix for OFFSETVicențiu Ciorbaru2020-12-281-0/+4
|
* More grammar completenessVicențiu Ciorbaru2020-12-281-54/+48
|
* Offset clause before or after FETCH FIRSTVicențiu Ciorbaru2020-12-281-20/+29
|
* Grammar completeVicențiu Ciorbaru2020-12-281-2/+2
|
* update parser to accept syntaxVicențiu Ciorbaru2020-12-222-14/+61
|
* Limit refactorVicențiu Ciorbaru2020-12-2018-146/+119
|
* Merge 10.5 into 10.6Marko Mäkelä2020-12-1911-114/+98
|\
| * MDEV-24445 Using innodb_undo_tablespaces corrupts system tablespaceMarko Mäkelä2020-12-189-104/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the rewrite of MDEV-8139 (based on MDEV-15528), we introduced a wrong assumption that any persistent tablespace that is not an .ibd file is the system tablespace. This assumption is broken when innodb_undo_tablespaces (files undo001, undo002, ...) are being used. By default, we have innodb_undo_tablespaces=0 (the persistent undo log is being stored in the system tablespace). In MDEV-15528 and MDEV-8139 we rewrote the page scrubbing logic so that it will follow the tried-and-true write-ahead logging protocol, first writing FREE_PAGE records and then in the page flushing, zerofilling or hole-punching freed pages. Unfortunately, the implementation included a wrong assumption that that anything that is not in an .ibd file must be the system tablespace. This wrong assumption would cause overwrites of valid data pages in the system tablespace. mtr_t::m_freed_in_system_tablespace: Remove. mtr_t::m_freed_space: The tablespace associated with m_freed_pages. buf_page_free(): Take the tablespace and page number as a parameter, instead of taking a page identifier.
| * MDEV-24442 Assertion space->referenced() failed in ↵Marko Mäkelä2020-12-182-16/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fil_crypt_space_needs_rotation A race condition between deleting an .ibd file and fil_crypt_thread marking pages dirty was introduced in commit 118e258aaac5da75a2ac4556201aaea3688fac67 (part of MDEV-23855). fil_space_t::acquire_if_not_stopped(): Correctly return false if the STOPPING flag is set, indicating that any further activity on the tablespace must be avoided. Also, remove the constant parameter have_mutex=true and move the function declaration to the same compilation unit with the only callers. fil_crypt_flush_space(): Remove an unused variable.
* | Merge 10.5 into 10.6Marko Mäkelä2020-12-181-7/+8
|\ \ | |/
| * MDEV-24426 fixup: Assertion failure on shutdownMarko Mäkelä2020-12-181-3/+2
| | | | | | | | | | | | | | | | fil_crypt_find_space_to_rotate(): Always treat the sentinel value that indicates that we have run out of work, even if at the same time the thread should shut down due to other reasons. Thanks to Matthias Leich for reproducing this bug with RQG.
* | Merge 10.5 into 10.6bb-10.6-MDEV-24426Marko Mäkelä2020-12-1727-103/+266
|\ \ | |/
| * MDEV-24426 fil_crypt_thread keep spinning even if ↵bb-10.5-MDEV-24426Marko Mäkelä2020-12-172-20/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | innodb_encryption_rotate_key_age=0 After MDEV-15528, two modes of operation in the fil_crypt_thread remains, depending on whether innodb_encryption_rotate_key_age=0 (whether key rotation is disabled). If the key rotation is disabled, the fil_crypt_thread miss the opportunity to sleep, which will result in lots of wasted CPU usage. fil_crypt_return_iops(): Add a parameter to specify whether other fil_crypt_thread should be woken up. fil_system_t::keyrotate_next(): Return the special value fil_system.temp_space to indicate that no work is to be done. fil_space_t::next(): Propagage the special value fil_system.temp_space to the caller. fil_crypt_find_space_to_rotate(): If no work is to be done, do not wake up other threads.
| * Contain AIX perrorEtienne Guesnet2020-12-161-7/+13
| |
| * Fix build on GCC 5Etienne Guesnet2020-12-161-1/+1
| |
| * Add LARGE_FILES flag for GCC AIX buildEtienne Guesnet2020-12-161-2/+2
| |
| * Add -berok for head test on AIXEtienne Guesnet2020-12-161-0/+5
| |
| * Parse GSSAPI flags on AIXEtienne Guesnet2020-12-161-1/+5
| |
| * Add flags for AIX buildEtienne Guesnet2020-12-161-0/+7
| |
| * Remove -Werror for AIXEtienne Guesnet2020-12-161-1/+5
| |
| * AIX workaround for GCC include bugEtienne Guesnet2020-12-161-0/+6
| |
| * AIX workaround for GCC TOC bugEtienne Guesnet2020-12-162-0/+6
| |
| * Support of AIX for auth_socket pluginEtienne Guesnet2020-12-162-0/+20
| |
| * Add build on AIXEtienne Guesnet2020-12-1614-68/+81
| |
| * MDEV-24366 Use environment variables as S3 test case variableszhaorenhai2020-12-153-16/+92
| | | | | | | | | | | | | | | | | | | | | | Move the S3 test case variables to suite.pm to use environment variables. Use minio credentials if a TCP connection to localhost:9000 is accepted so the current build works corrected. Reviewer: Daniel Black closes #1711
| * MDEV-23659 Update Galera disabled.def fileStepan Patryshev2020-12-141-1/+0
| |
* | Speed up mariabackup.xb_compressed_encryptedMarko Mäkelä2020-12-161-1/+1
| | | | | | | | | | | | With system mutexes, contention can be very expensive. Let us configure innodb_encryption_threads=1 to minimize contention. The actual work is being done in buf_flush_page_cleaner thread anyway.
* | MDEV-24167 fixup: Wake up all update_lock() in u_unlock()Marko Mäkelä2020-12-162-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that the hang that was fixed in commit 43d3dad11468bf45d2098ebca70002c49104f298 for the SRW_LOCK_DUMMY implementation is also possible in the futex implementation. We have observed hangs of ssux_lock_low::u_unlock() on Windows where the undesirable value is rw_lock::UPDATER, in the test mariabackup.xb_compressed_encrypted. The exact sequence of events to the hang is not known, but it seems that u_unlock() had better always wake up one thread. Possibly, the case involves multiple blocked u_unlock(). On a busy server, the hang might be 'rescued' by a subsequent lock acquisition and release that is executed by another thread. rw_lock::update_unlock(): Change the return type to void. ssux_lock_low::u_unlock(): Always invoke readers_wake() [sic], to wake up any pending update_lock() or write_lock(). On futex implementation, this will wake up all waiters. On SRW_LOCK_DUMMY, writer_wake() and readers_wake() do the same thing: wake up one write_lock(), or all update_lock() waiters.
* | MDEV-21452: Retain the watchdog only on dict_sys.mutex, for performancebb-10.6-MDEV-21452-2Marko Mäkelä2020-12-156-148/+30
| | | | | | | | | | | | Most hangs seem to involve dict_sys.mutex. While holding lock_sys.mutex we rarely acquire any buffer pool page latches, which are a frequent source of potential hangs.
* | MDEV-21452: Replace ib_mutex_t with mysql_mutex_tMarko Mäkelä2020-12-15117-5085/+1500
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SHOW ENGINE INNODB MUTEX functionality is completely removed, as are the InnoDB latching order checks. We will enforce innodb_fatal_semaphore_wait_threshold only for dict_sys.mutex and lock_sys.mutex. dict_sys_t::mutex_lock(): A single entry point for dict_sys.mutex. lock_sys_t::mutex_lock(): A single entry point for lock_sys.mutex. FIXME: srv_sys should be removed altogether; it is duplicating tpool functionality. fil_crypt_threads_init(): To prevent SAFE_MUTEX warnings, we must not hold fil_system.mutex. fil_close_all_files(): To prevent SAFE_MUTEX warnings for fil_space_destroy_crypt_data(), we must not hold fil_system.mutex while invoking fil_space_free_low() on a detached tablespace.
* | MDEV-21452: Remove os_event_t, MUTEX_EVENT, TTASEventMutex, sync_arrayMarko Mäkelä2020-12-1536-2542/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We will default to MUTEXTYPE=sys (using OSTrackMutex) for those ib_mutex_t that have not been replaced yet. The view INFORMATION_SCHEMA.INNODB_SYS_SEMAPHORE_WAITS is removed. The parameter innodb_sync_array_size is removed. FIXME: innodb_fatal_semaphore_wait_threshold will no longer be enforced. We should enforce it for lock_sys.mutex and dict_sys.mutex somehow! innodb_sync_debug=ON might still cover ib_mutex_t.
* | MDEV-21452: Replace all direct use of os_event_tMarko Mäkelä2020-12-1554-1798/+1391
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let us replace os_event_t with mysql_cond_t, and replace the necessary ib_mutex_t with mysql_mutex_t so that they can be used with condition variables. Also, let us replace polling (os_thread_sleep() or timed waits) with plain mysql_cond_wait() wherever possible. Furthermore, we will use the lightweight srw_mutex for trx_t::mutex, to hopefully reduce contention on lock_sys.mutex. FIXME: Add test coverage of mariabackup --backup --kill-long-queries-timeout
* | Fix the SRW_LOCK_DUMMY build with PLUGIN_PERFSCHEMA=NOMarko Mäkelä2020-12-151-0/+1
| | | | | | | | srw_lock_low: Declare the member functions public when wrapping rw_lock_t