summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix GCC 10.0 -Wstringop-overflowMarko Mäkelä2020-03-131-5/+8
| | | | | | | | | | | myrg_open(): Reduce the scope of the variable 'end' and simplify the code. For some reason, I got no warning for this code in the 10.2 branch, only 10.3 or later. The ENGINE=MERGE is covered by the tests main.merge, main.merge_debug, and main.merge-big.
* MDEV-10047: table-based master info repositorySujatha2020-03-133-1/+220
| | | | | | | | | | | | | | Problem: ======= When we upgrade from "mysql" to "mariadb" if slave is using repositories as tables their data is completely ignored and no warning is issued in error log. Fix: === "mysql_upgrade" test should check for the presence of data in "mysql.slave_master_info" and "mysql.slave_relay_log_info" tables. When tables have some data the upgrade script should report a warning which hints users that the data in repository tables will be ignored.
* Fix clang 10 warningsMarko Mäkelä2020-03-132-3/+4
| | | | | | | | | _ma_fetch_keypage(): Correct an assertion that used to always hold. Thanks to clang -Wint-in-bool-context for flagging this. double_to_datetime_with_warn(): Suppress -Wimplicit-int-float-conversion by adding a cast. LONGLONG_MAX converted to double will actually be LONGLONG_MAX+1.
* MDEV-21933 INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES accesses SYS_DATAFILESMarko Mäkelä2020-03-133-28/+14
| | | | | | | | | | | | | | | | | | All tablespace metadata is buffered in fil_system. There is a LRU mechanism, but that only controls the opening and closing of fil_node_t::handle. It is much more efficient and less error-prone to access data file names by looking up the fil_space_t object rather than by essentially joining each row with an access to SYS_DATAFILES via the InnoDB internal SQL parser. dict_get_first_path(): Declare static. The function may only be needed when loading or updating the data dictionary. Also, change a condition in order to avoid a bogus GCC 10 -Wstringop-overflow warning for mem_strdupl() about len==ULINT_UNDEFINED. i_s_sys_tablespaces_fill_table(): Do not access other InnoDB internal dictionary tables than SYS_TABLESPACES.
* Fix GCC 10 -Wclass-memaccessMarko Mäkelä2020-03-131-1/+1
|
* Fix GCC 10 -Wstringop-truncationMarko Mäkelä2020-03-131-0/+2
|
* Update libmariadbMarko Mäkelä2020-03-131-0/+0
| | | | This fixes GCC 10.0.1 -Wstringop-truncation and some typos.
* Merge 10.1 into 10.2Marko Mäkelä2020-03-138-92/+53
|\
| * Merge 5.5 into 10.1Marko Mäkelä2020-03-131-7/+7
| |\
| | * Cleanup: clang-10 -Wmisleading-indentationMarko Mäkelä2020-03-111-7/+7
| | | | | | | | | | | | | | | Also, remove some trailing white space and add missing static qualifier to free_annotate_event().
| * | MDEV-21918 improve page_zip_verify_checksum()Eugene Kosov2020-03-112-44/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | actually, page_zip_verify_checksum() generally allows all-zeroes checksums because our CRC32 checksum is something like crc_1 ^ crc_2 ^ crc_3 Also, all zeroes page is considered correct. As a side effect fix nasty reinterpret_cast<> UB Also, since c0f47a4a5842 innodb_checksum_algorithm=full_crc32 exists which computes CRC32 in one go (without bitwise arithmetic)
| * | fix typedef-related warning and cleanup using namespace stdEugene Kosov2020-03-116-11/+9
| | |
| * | Fix compile warning:Sergei Petrunia2020-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It was: implicit conversion from 'ha_rows' (aka 'unsigned long long') to 'double' changes value from 18446744073709551615 to 18446744073709551616 Follow what JOIN::get_examined_rows() does for similar code.
* | | InnoDB: improve error message for checksum mismatchEugene Kosov2020-03-121-1/+2
| | |
* | | Add galera debug sync to galera_slave_replay test.Jan Lindström2020-03-111-1/+2
| | |
* | | MDEV-19740: Correct a type mismatch WITH_INNODB_EXTRA_DEBUGMarko Mäkelä2020-03-101-2/+3
| | |
* | | fix use-after-freeEugene Kosov2020-03-101-2/+2
| | |
* | | Make main.mysql_client_test non-great againMarko Mäkelä2020-03-101-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Re-enable main.mysql_client_test on all builders, because at the moment we do not run any --big-test on buildbot due to resource constraints. A number of tests were declared big in commit eeee1832d792ac296e1cebeeed1f7a7ce4ce4551 in an attempt to save resources on buildbot.
* | | Merge 10.1 into 10.2Marko Mäkelä2020-03-101-2/+0
|\ \ \ | |/ /
| * | Do not bother to disable non-existing testsMarko Mäkelä2020-03-101-2/+0
| | |
* | | Minor cleanup of main.partition_innodbMarko Mäkelä2020-03-092-28/+12
| | | | | | | | | | | | | | | | | | | | | | | | Stop masking the Data_free values, because innodb_file_per_table=1 is the default. Also, do mask Update_time after updating tables, even though for some reason it does appear to matter.
* | | MDEV-21758 : Events switched randomly to SLAVESIDE_DISABLEDJan Lindström2020-03-093-4/+62
| | | | | | | | | | | | | | | | | | Change events only on Galera environment where idea is that event is enabled only on one node of the cluster and nodes are identified by server_id.
* | | Check for CPU_COUNT macro within my_getncpusVicențiu Ciorbaru2020-03-081-21/+23
| | | | | | | | | | | | | | | * Small refactor of my_getncpus function to compile for very old glibc < 2.6. * Cleanup code to eliminate duplication.
* | | Update install layout to account for multi-arch setupDaniel Black2020-03-083-11/+4
| | | | | | | | | | | | | | | | | | | | | Cleanup install_layout to account for multi-arch setup and remove redundant defines in debian rules. Signed-off-by: Vicențiu Ciorbaru <vicentiu@mariadb.org>
* | | Merge branch '10.1' into 10.2Oleksandr Byelkin2020-03-061-0/+12
|\ \ \ | |/ /
| * | Merge branch '5.5' into 10.1Oleksandr Byelkin2020-03-061-0/+12
| |\ \ | | |/
| | * MDEV-21646: Failure to compile my_addr_resolve.c with binutils-2.34bb-5.5-MDEV-21646Oleksandr Byelkin2020-02-121-0/+12
| | | | | | | | | | | | Emulate older API
* | | Enable galera.galera_ist_mariabackup and galera.mysql-wsrep#33.Stepan Patryshev2020-03-061-2/+0
| | |
* | | MDEV-19208 mariadb.pc: install into libdirVicențiu Ciorbaru2020-03-052-2/+2
| | | | | | | | | | | | | | | | | | | | | The .pc file installed by mariadb mentions archful directories and therefore must be archful itself. This fixes MDEV-14340.
* | | Merge branch '10.1' into 10.2Vicențiu Ciorbaru2020-03-056-3/+39
|\ \ \ | |/ /
| * | Remove unneded extra context line from test file to make it version independentVicențiu Ciorbaru2020-02-282-4/+2
| | |
| * | mariadb.pc: remove unnecessary include directoryBen Boeckel2020-02-261-1/+1
| | | | | | | | | | | | | | | When installing, no headers are installed into the parent directory of `${includedir}`.
| * | mariadb{,@}.service comment typo open-file-limit -> open-files-limitDaniel Black2020-02-252-2/+2
| | |
| * | MDEV-21374: When "--help --verbose" prints out configuration file paths, the ↵Anel Husakovic2020-02-223-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | --defaults-file option is not considered * `--defaults-file` option is showed only in `--help --verbose` if applied * `--default-extra-file` is showing correctly now in `--help --verbose`, previously it was treated as a directory with appended `my.cnf`
* | | MDEV-21857 - Fix sporadic failure of mdev375Vladislav Vaintroub2020-03-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | status threads_connected can temporarily be bigger than max_connections+1 If SHOW STATUS LIKE "Threads_connected" comes after ER_CON_COUNT_ERROR is sent to the client, but before the counter is decremented, Threads_connected can differ from the expected value.
* | | MENT-606 Error while setting value 'aes_ctr' to ↵Alexey Bychko2020-02-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | 'file-key-management-encryption-algorithm' cmake cannot detect openssl headers on Mac during checks. the solution is to add path to openssl includes to CMAKE_REQUIRED_INCLUDES before checks.
* | | MENT-645 Undefined symbols for architecture x86_64: _pam_syslogAlexey Bychko2020-02-252-6/+38
| | | | | | | | | | | | | | | | | | | | | added cmake checks for pam_ext.h and pam_appl.h headers added check for pam_syslog() added pam_syslog() if doesn't exist all cmake checks performed from inside the plugin
* | | MDEV-21723 Async slave thread BF abort and replaying fixes (#1448)seppo2020-02-236-5/+329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If async replication slave thread conflicts with cluster replication, then the async slave transaction should be BF aborted, and depending on the state of async slave transaction execution, potentially also replayed. There were problems in such BF abort implementation and the replaying was not started. This pull request contains fixes which make sure that if async slave thread is marked to abort and replay, it will complete carry out the rollback and release all locks and resources before starting the replaying. After replaying, async slave transactions is treated as successful, so the slave thread will continue as usual, handling next replication event. There is also new mtr test: galera.galera_slave_replay, which stresses both a certification failure for async slave thread and a successful BF abort followed by replaying.
* | | MDEV-21563 FTS thread aborts during shutdownThirunarayanan Balathandayuthapani2020-02-202-0/+2
| | | | | | | | | | | | - Add warning suppression in misc_debug2 test.
* | | Clean wrong cherry-pick from previous commitAnel Husakovic2020-02-203-4/+0
| | | | | | | | | | | | | | | - Delete variable HAVE_PTHREAD_CONDATTR_SETCLOCK and check - Delete second HAVE_PTHREAD_KEY_DELETE
* | | my_getncpus based on threads availableDaniel Black2020-02-204-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Detecting the cpus based on sysconf of the online CPUs can significantly over estimate the number of cpus available. Wheither via numactl, cgroups, taskset, systemd constraints, docker containers and probably other mechanisms, the number of threads mysqld can be run on can be quite less. As such we use the pthread_getaffinity_np function on Linux and FreeBSD (identical API) to get the number of CPUs. The number of CPUs is the default for the thread_pool_size and a too high default will resulting in large memory usage and high context switching overhead. Closes PR #922
* | | MDEV-21591 : galera.galera_rsu_add_pk MTR failed: Result content mismatchJan Lindström2020-02-172-16/+22
| | | | | | | | | | | | Add missing wait condition before we check the end database state.
* | | MDEV-21488 : Galera test sporadic failure on galera.galera_var_notify_cmdJan Lindström2020-02-145-26/+19
| | | | | | | | | | | | Add wait condition and cleanup.
* | | MDEV-21515 : Galera test sporadic failure on ↵Jan Lindström2020-02-134-11/+28
| | | | | | | | | | | | | | | | | | | | | galera.galera_wsrep_new_cluster: Result content mismatch Use correct configuration and wait for nodes to reach correct state with wait conditions.
* | | MDEV-21421 : Galera test sporadic failure on ↵Jan Lindström2020-02-133-1/+4
| | | | | | | | | | | | | | | | | | | | | galera.galera_as_slave_gtid_myisam: Result length mismatch In Galera 3 nodes 2 and 3 are galera nodes and node_1 should be non galera.
* | | MDEV-21556 : galera.lp1376747-4 MTR failed: Result length mismatchbb-10.2-MDEV-21446Jan Lindström2020-02-121-9/+8
| | | | | | | | | | | | Add proper wait condition instead of sleeps.
* | | MDEV-17941 ALTER USER IF EXISTS does not work, although documentation says ↵Alexey Botchkov2020-02-113-4/+4
| | | | | | | | | | | | | | | | | | | | | it should. Mistake in syntax definition fixed - should be ALTER USER IF EXISTS, not ALTER IF EXISTS USER.
* | | Ignore /lib64 for rpmAnel Husakovic2020-02-101-0/+2
| | |
* | | Merge branch '10.1' into 10.2Oleksandr Byelkin2020-02-107-7/+53
|\ \ \ | |/ /
| * | Merge branch '5.5' into 10.1Oleksandr Byelkin2020-02-101-1/+0
| |\ \ | | |/