summaryrefslogtreecommitdiff
path: root/storage/spider
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-29676 Add query to set lock wait timeout when getting sts crdbb-11.0-mdev-29676Yuchen Pei2023-04-289-3/+188
| | | | | | Set the lock wait timeout to 1 beforehand, and reset it afterwards, to avoid lock conflict caused by opening the same table twice in case of self-reference.
* MDEV-29676 Some changes in behaviour w.r.t. spider sts crdYuchen Pei2023-04-281-35/+29
| | | | | - assign spider->share early when !new_share - remove locking before spider_share_init_{sts,crd}
* MDEV-29676 refactored and documented spider_get_share() and friendsYuchen Pei2023-04-2815-1959/+1303
| | | | | | | | | | | | | | | | Extracted out common subroutines, gave more meaningful names etc, added comments etc. Also: - Documented active servers load balancing reads, and other fields in SPIDER_SHARE etc. - Removed commented out code - Documented and refactored self-reference check - Removed some unnecessary functions - Renamed unhelpful roop_count - Refactored spider_get_{sts,crd}, where we turn get_type into an enum - Cleaned up spider_mbase_handler::show_table_status() and spider_mbase_handler::show_index()
* MDEV-28363 remove #ifdef SPIDER_use_LEX_CSTRING_for_Field_blob_constructorYuchen Pei2023-04-286-74/+0
|
* MDEV-30920 Remove need_lock and table from spider_close_sys_table()Yuchen Pei2023-04-287-280/+173
|
* Merge 10.11 into 11.0Marko Mäkelä2023-04-273-17/+46
|\
| * Merge 10.10 into 10.11Marko Mäkelä2023-04-273-17/+46
| |\
| | * Merge 10.9 into 10.10Marko Mäkelä2023-04-273-17/+46
| | |\
| | | * Merge 10.8 into 10.9Marko Mäkelä2023-04-273-17/+46
| | | |\
| | | | * Merge 10.6 into 10.8Marko Mäkelä2023-04-273-24/+42
| | | | |\
| | | | | * Merge 10.5 into 10.6Marko Mäkelä2023-04-273-24/+42
| | | | | |\
| | | | | | * MDEV-29644 post-merge fixupYuchen Pei2023-04-273-24/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applying b98375f instead of 9b32e4b for version 10.5-10.8. Applying 5075f4e instead of 9b32e4b for version 10.9+.
* | | | | | | Merge 10.11 into 11.0Marko Mäkelä2023-04-267-76/+182
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Merge 10.10 into 10.11Marko Mäkelä2023-04-267-76/+182
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge 10.9 into 10.10Marko Mäkelä2023-04-267-76/+182
| | |\ \ \ \ \ | | | |/ / / /
| | | * | | | After-merge fixMarko Mäkelä2023-04-261-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes up commit e3f6e1c92e1604c63e4de113f8863953c05b29a9
| | | * | | | Merge 10.8 into 10.9Marko Mäkelä2023-04-267-76/+183
| | | |\ \ \ \ | | | | |/ / /
| | | | * | | Merge 10.6 into 10.8Marko Mäkelä2023-04-266-82/+144
| | | | |\ \ \ | | | | | |/ /
| | | | | * | Merge 10.5 into 10.6Marko Mäkelä2023-04-256-82/+144
| | | | | |\ \ | | | | | | |/
| | | | | | * Merge branch '10.4' into 10.5Oleksandr Byelkin2023-04-246-82/+144
| | | | | | |\
| | | | | | | * Merge branch '10.3' into 10.4Oleksandr Byelkin2023-04-215-56/+136
| | | | | | | |\
| | | | | | | | * MDEV-29644 a potential bug of null pointer dereference in ↵bb-10.3-mdev-29644Nayuta Yanagisawa2023-02-035-56/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | spider_db_mbase::print_warnings() The function spider_db_mbase::print_warnings() can potentially result in a null pointer dereference. Remove the null pointer dereference by cleaning up the function. Some small changes to the original commit 422fb63a9bbee35c50b6c7be19d199afe0bc98fa. Co-Authored-By: Yuchen Pei <yuchen.pei@mariadb.com>
| | | | * | | | | Merge 10.6 into 10.8Marko Mäkelä2023-04-242-0/+50
| | | | |\ \ \ \ \ | | | | | |/ / / /
| | | | | * | | | Merge 10.5 into 10.6Marko Mäkelä2023-04-212-0/+50
| | | | | |\ \ \ \ | | | | | | |/ / /
| | | | | | * | | MDEV-30542 Add multilength spider self-reference detection testYuchen Pei2023-04-192-0/+50
| | | | | | | | |
* | | | | | | | | Merge 10.11 into 11.0Sergei Petrunia2023-04-176-9/+15
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / /
| * | | | | | | | Merge 10.10 into 10.11Marko Mäkelä2023-04-146-9/+15
| |\ \ \ \ \ \ \ \ | | |/ / / / / / /
| | * | | | | | | Merge 10.9 into 10.10Marko Mäkelä2023-04-146-9/+15
| | |\ \ \ \ \ \ \ | | | |/ / / / / /
| | | * | | | | | Merge 10.8 into 10.9Marko Mäkelä2023-04-146-9/+15
| | | |\ \ \ \ \ \ | | | | |/ / / / /
| | | | * | | | | Merge 10.6 into 10.8Marko Mäkelä2023-04-126-9/+15
| | | | |\ \ \ \ \ | | | | | |/ / / /
| | | | | * | | | Merge 10.5 into 10.6Marko Mäkelä2023-04-116-9/+15
| | | | | |\ \ \ \ | | | | | | |/ / /
| | | | | | * | | Merge remote-tracking branch 'origin/10.4' into 10.5Alexander Barkov2023-04-051-0/+3
| | | | | | |\ \ \ | | | | | | | |/ /
| | | | | | | * | MDEV-29602 : Galera debug build crashes when the spider plugin is enabledJan Lindström2023-04-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spider system tables should be created so that wsrep_on=OFF. Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
| | | | | | * | | Merge remote-tracking branch '10.4' into 10.5Oleksandr Byelkin2023-03-315-9/+12
| | | | | | |\ \ \ | | | | | | | |/ /
| | | | | | | * | MDEV-30581 Add a testcase for MDEV-29904Yuchen Pei2023-03-282-0/+10
| | | | | | | | |
| | | | | | | * | MDEV-27912 Fixing inconsistency w.r.t. expect files in tests.Yuchen Pei2023-03-223-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mtr uses group suffix, but some existing inc and test files use server_id for expect files. This patch aims to fix that. For spider: With this change we will not have to maintain a separate version of restart_mysqld.inc for spider, that duplicates code, just because spider tests use different names for expect files, and shutdown_mysqld requires magical names for them. With this change spider tests will also be able to use other features provided by restart_mysqld.inc without code duplication, like the parameter $restart_parameters (see e.g. the testcase mdev_29904.test in commit ef1161e5d4f). Tests run after this change: default, spider, rocksdb, galera, using the following command mtr --parallel=auto --force --max-test-fail=0 --skip-core-file mtr --suite spider,spider/*,spider/*/* \ --skip-test="spider/oracle.*|.*/t\..*" --parallel=auto --big-test \ --force --max-test-fail=0 --skip-core-file mtr --suite galera --parallel=auto mtr --suite rocksdb --parallel=auto
* | | | | | | | | Merge 10.11 into 11.0Marko Mäkelä2023-02-168-120/+231
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / /
| * | | | | | | | Merge 10.10 into 10.11Marko Mäkelä2023-02-161-10/+10
| |\ \ \ \ \ \ \ \ | | |/ / / / / / /
| | * | | | | | | Merge 10.9 into 10.10Marko Mäkelä2023-02-161-10/+10
| | |\ \ \ \ \ \ \ | | | |/ / / / / /
| | | * | | | | | Merge 10.8 into 10.9Marko Mäkelä2023-02-161-10/+10
| | | |\ \ \ \ \ \ | | | | |/ / / / /
| | | | * | | | | Merge 10.6 into 10.8Marko Mäkelä2023-02-101-10/+10
| | | | |\ \ \ \ \ | | | | | |/ / / /
| | | | | * | | | Merge 10.5 into 10.6Marko Mäkelä2023-02-103-12/+12
| | | | | |\ \ \ \ | | | | | | |/ / /
| | | | | | * | | Merge 10.4 into 10.5Marko Mäkelä2023-02-103-12/+12
| | | | | | |\ \ \ | | | | | | | |/ /
| | | | | | | * | Apply clang-tidy to remove empty constructors / destructorsVicențiu Ciorbaru2023-02-093-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is the result of running run-clang-tidy -fix -header-filter=.* -checks='-*,modernize-use-equals-default' . Code style changes have been done on top. The result of this change leads to the following improvements: 1. Binary size reduction. * For a -DBUILD_CONFIG=mysql_release build, the binary size is reduced by ~400kb. * A raw -DCMAKE_BUILD_TYPE=Release reduces the binary size by ~1.4kb. 2. Compiler can better understand the intent of the code, thus it leads to more optimization possibilities. Additionally it enabled detecting unused variables that had an empty default constructor but not marked so explicitly. Particular change required following this patch in sql/opt_range.cc result_keys, an unused template class Bitmap now correctly issues unused variable warnings. Setting Bitmap template class constructor to default allows the compiler to identify that there are no side-effects when instantiating the class. Previously the compiler could not issue the warning as it assumed Bitmap class (being a template) would not be performing a NO-OP for its default constructor. This prevented the "unused variable warning".
| * | | | | | | | Merge branch '10.10' into 10.11Oleksandr Byelkin2023-01-317-110/+221
| |\ \ \ \ \ \ \ \ | | |/ / / / / / /
| | * | | | | | | Merge branch '10.9' into 10.10Oleksandr Byelkin2023-01-317-110/+221
| | |\ \ \ \ \ \ \ | | | |/ / / / / /
| | | * | | | | | Merge branch '10.8' into 10.9Oleksandr Byelkin2023-01-317-110/+221
| | | |\ \ \ \ \ \ | | | | |/ / / / /
| | | | * | | | | Merge branch '10.7' into 10.8Oleksandr Byelkin2023-01-317-110/+221
| | | | |\ \ \ \ \
| | | | | * \ \ \ \ Merge branch '10.6' into 10.7Oleksandr Byelkin2023-01-317-110/+221
| | | | | |\ \ \ \ \ | | | | | | |/ / / /
| | | | | | * | | | Merge branch '10.5' into 10.6Oleksandr Byelkin2023-01-317-110/+221
| | | | | | |\ \ \ \ | | | | | | | |/ / /