summaryrefslogtreecommitdiff
path: root/sql/wsrep_hton.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.2 into bb-10.2-extMarko Mäkelä2017-09-181-0/+1
|\
| * Merge 10.1 into 10.2Marko Mäkelä2017-09-181-0/+1
| |\
| | * Silence a -Wimplicit-fallthrough warningMarko Mäkelä2017-09-171-0/+1
| | |
* | | Merge 10.2 into bb-10.2-extMarko Mäkelä2017-09-011-0/+1
|\ \ \ | |/ /
| * | Merge 10.1 into 10.2Marko Mäkelä2017-08-311-0/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For running the Galera tests, the variable my_disable_leak_check was set to true in order to avoid assertions due to memory leaks at shutdown. Some adjustments due to MDEV-13625 (merge InnoDB tests from MySQL 5.6) were performed. The most notable behaviour changes from 10.0 and 10.1 are the following: * innodb.innodb-table-online: adjustments for the DROP COLUMN behaviour change (MDEV-11114, MDEV-13613) * innodb.innodb-index-online-fk: the removal of a (1,NULL) record from the result; originally removed in MySQL 5.7 in the Oracle Bug #16244691 fix https://github.com/mysql/mysql-server/commit/377774689bf6a16af74182753fe950d514c2c6dd * innodb.create-index-debug: disabled due to MDEV-13680 (the MySQL Bug #77497 fix was not merged from 5.6 to 5.7.10) * innodb.innodb-alter-autoinc: MariaDB 10.2 behaves like MySQL 5.6/5.7, while MariaDB 10.0 and 10.1 assign different values when auto_increment_increment or auto_increment_offset are used. Also MySQL 5.6/5.7 exhibit different behaviour between LGORITHM=INPLACE and ALGORITHM=COPY, so something needs to be tested and fixed in both MariaDB 10.0 and 10.2. * innodb.innodb-wl5980-alter: disabled because it would trigger an InnoDB assertion failure (MDEV-13668 may need additional effort in 10.2)
| | * Merge remote-tracking branch 'origin/10.0-galera' into 10.1Jan Lindström2017-08-211-0/+1
| | |\
| | | * Refs: MW-360 * splitting DROP TABLE query in separate DROP commands for ↵sjaakola2017-08-111-0/+1
| | | | | | | | | | | | | | | | temporary and real tables * not replicating temporary table DROP command * using wsrep_sidno GTID group only for innodb table drop command part all this follows more or less the logic of how mysql wants to split drop table list
| | | * refs: MW-319sjaakola2017-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | * silenced the WSREP_ERROR, this fires for all replication filtered DDL, and is false positive
* | | | Merge remote-tracking branch 'origin/10.2' into bb-10.2-extAlexander Barkov2017-05-051-1/+1
|\ \ \ \ | |/ / /
| * | | Merge 10.1 into 10.2Marko Mäkelä2017-04-281-1/+1
| |\ \ \ | | |/ /
| | * | refs: MW-319sjaakola2017-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | * silenced the WSREP_ERROR, this fires for all replication filtered DDL, and is false positive
* | | | MDEV-10139 Support for SEQUENCE objectsMonty2017-04-071-1/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Working features: CREATE OR REPLACE [TEMPORARY] SEQUENCE [IF NOT EXISTS] name [ INCREMENT [ BY | = ] increment ] [ MINVALUE [=] minvalue | NO MINVALUE ] [ MAXVALUE [=] maxvalue | NO MAXVALUE ] [ START [ WITH | = ] start ] [ CACHE [=] cache ] [ [ NO ] CYCLE ] ENGINE=xxx COMMENT=".." SELECT NEXT VALUE FOR sequence_name; SELECT NEXTVAL(sequence_name); SELECT PREVIOUS VALUE FOR sequence_name; SELECT LASTVAL(sequence_name); SHOW CREATE SEQUENCE sequence_name; SHOW CREATE TABLE sequence_name; CREATE TABLE sequence-structure ... SEQUENCE=1 ALTER TABLE sequence RENAME TO sequence2; RENAME TABLE sequence TO sequence2; DROP [TEMPORARY] SEQUENCE [IF EXISTS] sequence_names Missing features - SETVAL(value,sequence_name), to be used with replication. - Check replication, including checking that sequence tables are marked not transactional. - Check that a commit happens for NEXT VALUE that changes table data (may already work) - ALTER SEQUENCE. ANSI SQL version of setval. - Share identical sequence entries to not add things twice to table list. - testing insert/delete/update/truncate/load data - Run and fix Alibaba sequence tests (part of mysql-test/suite/sql_sequence) - Write documentation for NEXT VALUE / PREVIOUS_VALUE - NEXTVAL in DEFAULT - Ensure that NEXTVAL in DEFAULT uses database from base table - Two NEXTVAL for same row should give same answer. - Oracle syntax sequence_table.nextval, without any FOR or FROM. - Sequence tables are treated as 'not read constant tables' by SELECT; Would be better if we would have a separate list for sequence tables so that select doesn't know about them, except if refereed to with FROM. Other things done: - Improved output for safemalloc backtrack - frm_type_enum changed to Table_type - Removed lex->is_view and replaced with lex->table_type. This allows use to more easy check if item is view, sequence or table. - Added table flag HA_CAN_TABLES_WITHOUT_ROLLBACK, needed for handlers that want's to support sequences - Added handler calls: - engine_name(), to simplify getting engine name for partition and sequences - update_first_row(), to be able to do efficient sequence implementations. - Made binlog_log_row() global to be able to call it from ha_sequence.cc - Added handler variable: row_already_logged, to be able to flag that the changed row is already logging to replication log. - Added CF_DB_CHANGE and CF_SCHEMA_CHANGE flags to simplify deny_updates_if_read_only_option() - Added sp_add_cfetch() to avoid new conflicts in sql_yacc.yy - Moved code for add_table_options() out from sql_show.cc::show_create_table() - Added String::append_longlong() and used it in sql_show.cc to simplify code. - Added extra option to dd_frm_type() and ha_table_exists to indicate if the table is a sequence. Needed by DROP SQUENCE to not drop a table.
* | | Merge branch '10.1' into 10.2Sergei Golubchik2017-03-301-1/+1
|\ \ \ | |/ /
| * | Correct FSF addressiangilfillan2017-03-101-1/+1
| | |
* | | Merge branch '10.1' into 10.2Sergei Golubchik2016-09-091-7/+4
|\ \ \ | |/ /
| * | Merge branch '10.0-galera' into bb-10.1-sergNirbhay Choubey2016-08-251-7/+4
| |\ \ | | |/
| | * Refs: MW-279sjaakola2016-08-211-7/+3
| | | | | | | | | | | | | | | | | | | | | - fixes in innodb to skip wsrep processing (like kill victim) when running in native mysql mode - similar fixes in mysql server side - forcing tc_log_dummy in native mysql mode when no binlog used. wsrep hton messes up handler counter and used to lead in using tc_log_mmap instead. Bad news is that tc_log_mmap does not seem to work at all
| | * MW-269 Fix outstanding issues with wsrep_max_ws_rowsDaniele Sciascia2016-07-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This patch includes two fixes: 1) Rollback when wsrep_max_ws_rows is exceeded would not switch back to previous autocommit mode; and 2) Internal rows counter would not be reset on implicit commits.
* | | Merge branch '10.1' into 10.2Sergei Golubchik2016-02-251-0/+14
|\ \ \ | |/ /
| * | Merge branch '10.0-galera' into bb-10.1-sergNirbhay Choubey2016-02-241-0/+14
| |\ \ | | |/
| | * refs codership/mysql-wsrep#237: Add sync point for mtr test.Nirbhay Choubey2016-02-231-0/+3
| | |
| | * PXC-391: Avoid Total Order Isolation (TOI) for LOCAL sql admin commands.Raghavendra D Prabhu2016-02-221-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The admin commands in question are: > OPTIMIZE > REPAIR > ANALYZE For LOCAL or NO_WRITE_TO_BINLOG invocations of these commands, ie OPTIMIZE LOCAL TABLE <t1> they are not binlogged as expected. Also, in addition, they are not executed under TOI. Hence, they are not propagated to other nodes. The effect is same as that of wsrep_on=0. Also added tests for this. A WSREP_DEBUG for wsrep_register_hton has also been added. The galera_flush_local test has also been updated for verifying that effects of NO_WRITE_TO_BINLOG / LOCAL are equivalent to wsrep_on=0 from wsrep perspective. (cherry picked from commit 5065122f94a8002d4da231528a46f8d9ddbffdc2) Conflicts: sql/sql_admin.cc sql/sql_reload.cc sql/wsrep_hton.cc
* | | Changed my_thread_id to int64 to fix compilation problem withMonty2016-02-081-13/+15
|/ / | | | | | | | | | | my_atomic_add32_explicit on windows Fixed that server_audit.c also works if one compiles with safemalloc Fixed compiler warnings
* | Merge branch 'github/10.0-galera' into 10.1Sergei Golubchik2015-11-191-7/+11
|\ \ | |/
| * refs codership/mysql-wsrep#202 Added schema info into wsrep messagesPhilip Stoev2015-10-191-7/+11
| | | | | | | | Added schema info to wsrep messages above debug level.
| * Refs codership/mysql-wsrep#113 - Extended the protection of local FLUSHsjaakola2015-09-091-1/+1
| | | | | | | | sessions to cover all exclusive MDL locks
| * Refs codership/mysql-wsrep#113sjaakola2015-09-091-1/+1
| | | | | | | | Protecting non replicated FLUSH session from brute force aborts
| * Post-merge fixNirbhay Choubey2015-05-081-0/+8
| |
| * Refs codership/mysql-wsrep#33Alexey Yurchenko2015-05-081-2/+3
| | | | | | | | | | | | | | 1. factored XID-related functions to a separate wsrep_xid.cc unit. 2. refactored them to take refrences instead of pointers where appropriate 3. implemented wsrep_get/set_SE_position to take wsrep_uuid_t and wsrep_seqno_t instead of XID 4. call wsrep_set_SE_position() in wsrep_sst_received() to reinitialize SE checkpoint after SST was received, avoid assert() in setting code by first checking current position.
| * refs #2 - added binlog stmt cache reset after commit. This is needed for ↵sjaakola2015-05-081-4/+19
| | | | | | | | non-InnoDB statements
| * MDEV-7129 : Galera duplicate error on autoincrement field primary keyNirbhay Choubey2015-01-071-1/+2
| | | | | | | | | | Merged fix for https://github.com/codership/mysql-wsrep/issues/18.
| * MDEV-6481: Yum Upgrade on CentOS 6.5 causes instantmariadb-galera-10.0.14Nirbhay Choubey2014-10-081-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | crash of MariaDB/Galera mysqld crashes during startup when its started with --wsrep-recover (mysqld_safe.sh). The problem was that during server startup "wsrep" handle is not initialized for --wsrep-recover and since the condition to register wsrep hton depended only on 'wsrep_on' global/session variables (WSREP(thd) macro), it can eventually get registered and calls to wsrep handle's functions (commit, rollback, etc.) can be made (SIGSEGV!). Fixed by adding a check for "wsrep" pointer in WSREP(thd) macro (added by lp:1367173). Additionally, a check for WSREP(thd) (instead of checking the availability of wsrep provider) has been added before invoking wsrep handle's commit & rollback functions.
| * bzr merge -r4065..4088 codership/5.6Nirbhay Choubey2014-05-211-5/+5
| |
| * bzr merge -r3968..3984 codership/5.5 (non-Innodb changes only).Nirbhay Choubey2014-05-211-0/+6
| |
| * Local merge (mariadb-galera-10.0.10).Nirbhay Choubey2014-04-091-13/+6
| |\
| | * bzr merge -r3946..3968 codership/5.5Nirbhay Choubey2014-03-251-13/+6
| | |
| * | References: lp:1299430 - initial support for tokudb replication in ↵Seppo Jaakola2014-03-291-1/+2
| |/ | | | | | | master-slave model
| * * Merged revisions: 3431, 3435..3457, 3459, 3460 from maria-5.5-galera.Nirbhay Choubey2014-01-301-5/+7
| | | | | | | | | | * Fixed Debian/Ubuntu dist files. * Fixed some compiler warnings.
| * merge with MariaDB 5.6 bzr merge lp:maria --rtag:mariadb-10.0.6Seppo Jaakola2013-12-041-21/+34
| | | | | | | | | | | | and a number of fixes to make this buildable. Run also few short multi-master high conflict rate tests, with no issues
| * bzr merge -r3904..3928 lp:codership-mysql/5.5Seppo Jaakola2013-11-271-1/+1
| | | | | | | | | | | | This is now otherwise on level wsrep-25.9, but storage/innobase has not been fully merged wsrep-5.5 is not good source for that, so we probably have to cherry pick innodb changes from wsrep-5.6
| * bzr merge -r3895..3903 lp:codership-mysql/5.5 Seppo Jaakola2013-11-261-57/+142
| | | | | | | | | | This is just before 5.5.34 merge in wsrep-5.5 branch
| * merge from lp:codership-mysql/5.5 rev #3895Seppo Jaakola2013-11-261-9/+12
| |
| * Merges from lp:codership-mysql/5.5 up to rev #3893, this changes to wsrep ↵Seppo Jaakola2013-11-261-69/+65
| | | | | | | | API #24
| * Merge fixes, now at level 3430 in mariadb-galera-5.5Seppo Jaakola2013-10-071-6/+6
| |
| * Merged revisions 3418..3424 from mariadb-galera-5.5Seppo Jaakola2013-10-071-7/+19
| |
| * Merged revisions 3411..3417 from mariadb-galera-5.5Seppo Jaakola2013-10-071-12/+12
| |
| * Merge 10.0 to galera-10.0Jan Lindström2013-09-031-0/+466
|
* Merge branch '10.0-galera' into 10.1Nirbhay Choubey2015-07-141-6/+30
|
* MDEV-7604: wsrep plugin lists its plugin_maturity as UnknownJan Lindström2015-02-181-4/+4
| | | | | Changed wsrep plugin from mysql_plugin to maria_plugin to set up plugin_maturity to Stable.
* remove wsrep_hton dependency from innodb/xtradbSergei Golubchik2015-01-081-7/+3
|