summaryrefslogtreecommitdiff
path: root/storage/xtradb
Commit message (Collapse)AuthorAgeFilesLines
* Fix compile errorVladislav Vaintroub2013-05-091-1/+1
|
* Merge with XtraDB as of Percona-Server-5.5.30-rel30.2Sergei Golubchik2013-05-0844-649/+801
|
* Compilation warnings.Sergei Golubchik2013-05-071-2/+1
| | | | openssl compilation problem.
* MDEV-4398 - Vladislav Vaintroub2013-04-191-1/+1
| | | | Change default for innodb_use_fallocate to FALSE, due to bugs in older Linux kernels (posix_fallocate() does not always guarantee that file size is like one specified)
* MDEV-4338 - Support FusionIO/directFS atomic writesVladislav Vaintroub2013-04-065-0/+153
|
* MDEV-4243 Warnings/errors while compiling with clangSergei Golubchik2013-03-281-2/+2
|
* extend check_global_access() to avoid my_error when it's not neededSergei Golubchik2013-03-191-23/+23
| | | | (in INFORMATION_SCHEMA).
* merge with XtraDB as of Percona-Server-5.5.30-rel30.1Sergei Golubchik2013-03-0835-546/+1137
|
* merge with XtraDB as of Percona-Server-5.5.29-rel30.0Sergei Golubchik2013-02-2840-396/+972
|
* merge with mysql-5.5.30 minus few incorrect or not applicable changesetsSergei Golubchik2013-02-281-3/+3
|
* MDEV-4069 thd_wait_end does not called in some cases in buf_page_read_low in ↵Sergei Golubchik2013-01-211-1/+3
| | | | XtraDB engine
* MDEV-4065 thd_kill_statement serviceSergei Golubchik2013-01-181-10/+9
|
* xtradb merge. Percona-Server-5.5.28-rel29.3Sergei Golubchik2013-01-1624-417/+1107
|
* remove thd_mark_as_hard_kill()Sergei Golubchik2013-01-151-1/+1
| | | | | (because it's conceptually wrong. only the user can decide whether the kill is allowed to leave tables in the inconsistent state, storage engine has no say in that)
* Fixed some race conditons and bugs related to killed queriesMichael Widenius2013-01-111-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | KILL now breaks locks inside InnoDB Fixed possible deadlock when running INNODB STATUS Added ha_kill_query() and kill_query() to send kill signal to all storage engines Added reset_killed() to ensure we don't reset killed state while awake() is getting called include/mysql/plugin.h: Added thd_mark_as_hard_kill() include/mysql/plugin_audit.h.pp: Added thd_mark_as_hard_kill() include/mysql/plugin_auth.h.pp: Added thd_mark_as_hard_kill() include/mysql/plugin_ftparser.h.pp: Added thd_mark_as_hard_kill() sql/handler.cc: Added ha_kill_query() to send kill signal to all storage engines sql/handler.h: Added ha_kill_query() and kill_query() to send kill signal to all storage engines sql/log_event.cc: Use reset_killed() sql/mdl.cc: use thd->killed instead of thd_killed() to abort on soft kill sql/sp_rcontext.cc: Use reset_killed() sql/sql_class.cc: Fixed possible deadlock in INNODB STATUS by not getting thd->LOCK_thd_data if it's locked. Use reset_killed() Tell storge engines that KILL has been sent sql/sql_class.h: Added reset_killed() to ensure we don't reset killed state while awake() is getting called. Added mark_as_hard_kill() sql/sql_insert.cc: Use reset_killed() sql/sql_parse.cc: Simplify detection of killed queries. Use reset_killed() sql/sql_select.cc: Use reset_killed() sql/sql_union.cc: Use reset_killed() storage/innobase/handler/ha_innodb.cc: Added innobase_kill_query() Fixed error reporting for interrupted queries. storage/xtradb/handler/ha_innodb.cc: Added innobase_kill_query() Fixed error reporting for interrupted queries.
* Remove timed mutexes in XtraDB - obsolete feature that does not link on ↵Vladislav Vaintroub2013-01-051-36/+2
| | | | | | Windows, if plugin is build dynamically It was already removed from innobase in the past.
* XtraDB from Percona-Server-5.5.28-rel29.1Sergei Golubchik2012-11-2227-260/+2436
|
* MDEV-3824 - xtradb file rename fails on Windows, if new name already exists.Vladislav Vaintroub2012-10-301-1/+1
| | | | | Changed implementation os_file_rename() on Windows such as it does not fail if destination file already exists. Now MoveFileEx() with MOVEFILE_REPLACE_EXISTING flag is used, instead of prior MoveFile(). This fixed implementation is better compatible with rename() on POSIX systems.
* XtraDB 1.1.8-29.0Sergei Golubchik2012-10-1623-65/+2019
|
* simplify future xtradb merges (hopefully)Sergei Golubchik2012-10-123-447/+962
|
* Fixed issues found by buildbot & valgrind:Michael Widenius2012-10-041-1/+2
| | | | | | | | | | | | | | | - Wrong thd uses in Item_subselect, could lead to crash - Inititalize uninitialized variable in new autoincrement handling code sql/handler.cc: More DBUG_PRINT sql/item_subselect.cc: Wrong thd uses in Item_subselect, could lead to crash storage/innobase/handler/ha_innodb.cc: Initialize variable needed by upper level. This only happens when auto-increment value wraps over. storage/xtradb/handler/ha_innodb.cc: Initialize variable needed by upper level. This only happens when auto-increment value wraps over.
* Fix for MDEV-533: Confusing error code when doing auto-increment insert for ↵Michael Widenius2012-09-181-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | out-of-range values create table t1 (a smallint primary key auto_increment); insert into t1 values(32767); insert into t1 values(NULL); ERROR 1062 (23000): Duplicate entry '32767' for key 'PRIMARY Now on always gets error HA_ERR_AUTOINC_RANGE=167 "Out of range value for column", independent of store engine, SQL Mode or number of inserted rows. This is an unique error that is easier to test for in replication. Another bug fix is that we now get an error when trying to insert a too big auto-generated value, even in non-strict mode. Before one get insted the max column value inserted. This patch also fixes some issues with inserting negative numbers in an auto-increment column. Fixed the ER_DUP_ENTRY and HA_ERR_AUTOINC_ERANGE are compared the same between master and slave. This ensures that replication works between an old server to a new slave for auto-increment overflow errors. Added SQLSTATE errors for handler errors Smaller bug fixes: * Added warnings for duplicate key errors when using INSERT IGNORE * Fixed bug when using --skip-log-bin followed by --log-bin, which did set log-bin to "0" * Allow one to see how cmake is called by using --just-print --just-configure BUILD/FINISH.sh: --just-print --just-configure now shows how cmake would be invoked. Good for understanding parameters to cmake. cmake/configure.pl: --just-print --just-configure now shows how cmake would be invoked. Good for understanding parameters to cmake. include/CMakeLists.txt: Added handler_state.h include/handler_state.h: SQLSTATE for handler error messages. Required for HA_ERR_AUTOINC_ERANGE, but solves also some other cases. mysql-test/extra/binlog_tests/binlog.test: Fixed old wrong behaviour Added more tests mysql-test/extra/binlog_tests/binlog_insert_delayed.test: Reset binary log to only print what's necessary in show_binlog_events mysql-test/extra/rpl_tests/rpl_auto_increment.test: Update to new error codes mysql-test/extra/rpl_tests/rpl_insert_delayed.test: Ignore warnings as this depends on how the test is run mysql-test/include/strict_autoinc.inc: On now gets an error on overflow mysql-test/r/auto_increment.result: Update results after fixing error message mysql-test/r/auto_increment_ranges_innodb.result: Test new behaviour mysql-test/r/auto_increment_ranges_myisam.result: Test new behaviour mysql-test/r/commit_1innodb.result: Added warnings for duplicate key error mysql-test/r/create.result: Added warnings for duplicate key error mysql-test/r/insert.result: Added warnings for duplicate key error mysql-test/r/insert_select.result: Added warnings for duplicate key error mysql-test/r/insert_update.result: Added warnings for duplicate key error mysql-test/r/mix2_myisam.result: Added warnings for duplicate key error mysql-test/r/myisam_mrr.result: Added warnings for duplicate key error mysql-test/r/null_key.result: Added warnings for duplicate key error mysql-test/r/replace.result: Update to new error codes mysql-test/r/strict_autoinc_1myisam.result: Update to new error codes mysql-test/r/strict_autoinc_2innodb.result: Update to new error codes mysql-test/r/strict_autoinc_3heap.result: Update to new error codes mysql-test/r/trigger.result: Added warnings for duplicate key error mysql-test/r/xtradb_mrr.result: Added warnings for duplicate key error mysql-test/suite/binlog/r/binlog_innodb_row.result: Updated result mysql-test/suite/binlog/r/binlog_row_binlog.result: Out of range data for auto-increment is not inserted anymore mysql-test/suite/binlog/r/binlog_statement_insert_delayed.result: Updated result mysql-test/suite/binlog/r/binlog_stm_binlog.result: Out of range data for auto-increment is not inserted anymore mysql-test/suite/binlog/r/binlog_unsafe.result: Updated result mysql-test/suite/innodb/r/innodb-autoinc.result: Update to new error codes mysql-test/suite/innodb/r/innodb-lock.result: Updated results mysql-test/suite/innodb/r/innodb.result: Updated results mysql-test/suite/innodb/r/innodb_bug56947.result: Updated results mysql-test/suite/innodb/r/innodb_mysql.result: Updated results mysql-test/suite/innodb/t/innodb-autoinc.test: Update to new error codes mysql-test/suite/maria/maria3.result: Updated result mysql-test/suite/maria/mrr.result: Updated result mysql-test/suite/optimizer_unfixed_bugs/r/bug43617.result: Updated result mysql-test/suite/rpl/r/rpl_auto_increment.result: Update to new error codes mysql-test/suite/rpl/r/rpl_insert_delayed,stmt.rdiff: Updated results mysql-test/suite/rpl/r/rpl_loaddatalocal.result: Updated results mysql-test/t/auto_increment.test: Update to new error codes mysql-test/t/auto_increment_ranges.inc: Test new behaviour mysql-test/t/auto_increment_ranges_innodb.test: Test new behaviour mysql-test/t/auto_increment_ranges_myisam.test: Test new behaviour mysql-test/t/replace.test: Update to new error codes mysys/my_getopt.c: Fixed bug when using --skip-log-bin followed by --log-bin, which did set log-bin to "0" sql/handler.cc: Ignore negative values for signed auto-increment columns Always give an error if we get an overflow for an auto-increment-column (instead of inserting the max value) Ensure that the row number is correct for the out-of-range-value error message. ****** Fixed wrong printing of column namn for "Out of range value" errors Fixed that INSERT_ID is correctly replicated also for out-of-range autoincrement values Fixed that print_keydup_error() can also be used to generate warnings ****** Return HA_ERR_AUTOINC_ERANGE (167) instead of ER_WARN_DATA_OUT_OF_RANGE for auto-increment overflow sql/handler.h: Allow INSERT IGNORE to continue also after out-of-range inserts. Fixed that print_keydup_error() can also be used to generate warnings sql/log_event.cc: Added DBUG_PRINT Fixed the ER_AUTOINC_READ_FAILED, ER_DUP_ENTRY and HA_ERR_AUTOINC_ERANGE are compared the same between master and slave. This ensures that replication works between an old server to a new slave for auto-increment overflow errors. sql/sql_insert.cc: Add warnings for duplicate key errors when using INSERT IGNORE sql/sql_state.c: Added handler errors sql/sql_table.cc: Update call to print_keydup_error() storage/innobase/handler/ha_innodb.cc: Fixed increment handling of auto-increment columns to be consistent with rest of MariaDB. storage/xtradb/handler/ha_innodb.cc: Fixed increment handling of auto-increment columns to be consistent with rest of MariaDB.
* XtraDB from Percona-Server-5.5.27-rel28.1Sergei Golubchik2012-09-0533-166/+661
|
* merge XtraDB 1.1.8-27.0 from Percona-Server-5.5.25a-rel27.1Sergei Golubchik2012-08-2211-21/+63
|
* Ensure we don't assert with debug binaries if SHOW INNODB STATUS returns ↵Michael Widenius2012-08-201-3/+5
| | | | | | | | | | | | | | with an error. sql/handler.cc: SHOW INNODB STATUS sometimes returns 0 even if it has generated an error. This code is here to catch it until InnoDB some day is fixed. storage/innobase/handler/ha_innodb.cc: Catch at least one of the possible errors from SHOW INNODB STATUS to provide a correct return code. storage/xtradb/handler/ha_innodb.cc: Catch at least one of the possible errors from SHOW INNODB STATUS to provide a correct return code. support-files/my-huge.cnf.sh: Fixed typo
* Fixed compiler warningsMichael Widenius2012-08-153-4/+7
| | | | | | | | | | | | | | | | sql/item_subselect.cc: Added purecov info sql/sql_select.cc: Added cast storage/innobase/handler/ha_innodb.cc: Added cast storage/xtradb/btr/btr0btr.c: Added buf_block_get_frame_fast() to avoid compiler warning storage/xtradb/handler/ha_innodb.cc: Added cast storage/xtradb/include/buf0buf.h: Innodb has buf_block_get_frame(block) defined as (block)->frame. Didn't want to do a big change to break xtradb as it may use block_get_frame() differently, so I mad this quick hack to patch one compiler warning.
* Fixed compiler errorsMichael Widenius2012-08-142-7/+7
| | | | | | | Updated test to also work on 32 bit mysql-test/suite/heap/heap.test: Updated test to also work on 32 bit
* Fixed compiler warningsMichael Widenius2012-08-061-2/+2
| | | | | | | sql/log.h: Fixed compiler warnings reported for gcc 2.7.1 storage/xtradb/handler/ha_innodb.cc: Remove not used variables
* Don't abort InnoDB/XtraDB if one can't allocate resources for AIOMichael Widenius2012-06-272-10/+31
| | | | | | | | | | | | | | | | | | - Better error messages This fixes that one again can run the test systems with many threads without having to increase fs.aio-max-nr. mysql-test/include/mtr_check.sql: Ignore the INNODB_USE_NATIVE_AIO variable (may change during execution) mysql-test/mysql-test-run.pl: Ignore warnings for failure to setup AIO storage/innobase/os/os0file.c: Continue without AIO even if we can't allocate resources for AIO storage/xtradb/os/os0file.c: Continue without AIO even if we can't allocate resources for AIO storage/xtradb/srv/srv0start.c: Give an error message (instead of core dump) if AIO can't be initialized
* MDEV-349 5.5 xtradb innodb_prefix_index_liftedlimit crash with valgrindSergei Golubchik2012-06-211-1/+1
| | | | | | This is XtraDB bug lp:1015109, introduced by innodb_split_buf_pool_mutex.patch Comment the offending assertion, until the fixed XtraDB is available
* MDEV-361 - Fix handle leak in os_thread_create (Windows)Vladislav Vaintroub2012-06-211-2/+4
|
* merged with XtraDB 1.1.8-26.0Sergei Golubchik2012-06-1581-1522/+3137
|
* commentsSergei Golubchik2012-06-151-0/+3
|
* apply mysql fix for bug#58421 to XtraDBSergei Golubchik2012-06-081-1/+98
|
* Mergeunknown2012-06-061-1/+0
|\
| * MDEV-308 lp:1008516 - Failing assertion: templ->mysql_col_len == lenSergei Golubchik2012-06-041-1/+0
| | | | | | | | | | remove the offending assert. take the test case from mysql Bug#58015
* | 5.3 mergeSergei Golubchik2012-05-043-3/+3
|\ \ | |/
| * mergeVladislav Vaintroub2012-04-161-21/+13
| |\
| | * mergeVladislav Vaintroub2012-04-161-21/+13
| | |\
| | | * backport a change from 5.5 to remove thread sleeps from Innodb assertions on ↵Vladislav Vaintroub2012-04-161-21/+13
| | | | | | | | | | | | | | | | | | | | | | | | Windows. This can result in bad deadlocks (e.g loader lock), seen in latest crash reports.
| * | | mergeSergei Golubchik2012-04-051-1/+3
| |\ \ \ | | |/ /
| | * | mergeSergei Golubchik2012-04-051-1/+3
| | |\ \
| | | * | mysql-5.1.62 mergeSergei Golubchik2012-04-051-1/+3
| | | | |
* | | | | mysql 5.5.23 mergeSergei Golubchik2012-04-102-55/+89
| | | | |
* | | | | 5.3 mergeSergei Golubchik2012-03-281-52/+15
|\ \ \ \ \ | |/ / / /
| * | | | Bug fix for MySQL bug#61209 "auto_increment_offset != 1 + ↵Michael Widenius2012-03-261-52/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | innodb_autoinc_lock_mode=1 => bulk inserts fail" Patch and test case by Patryk Pomykalski mysql-test/suite/innodb/r/innodb-autoinc.result: updated test case storage/innodb_plugin/handler/ha_innodb.cc: Fixed that we properly reserve values for auto_increment storage/xtradb/handler/ha_innodb.cc: Fixed that we properly reserve values for auto_increment
* | | | | mysql-5.5.22 mergeSergei Golubchik2012-03-282-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mysql-test/suite/innodb/t/group_commit_crash.test: remove autoincrement to avoid rbr being used for insert ... select mysql-test/suite/innodb/t/group_commit_crash_no_optimize_thread.test: remove autoincrement to avoid rbr being used for insert ... select mysys/my_addr_resolve.c: a pointer to a buffer is returned to the caller -> the buffer cannot be on the stack mysys/stacktrace.c: my_vsnprintf() is ok here, in 5.5
* | | | | Small Windows specific performance fixes:Vladislav Vaintroub2012-03-251-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use native memcmp() supplied with C runtime instead of hand-unrolled loop ptr_compare_N loop Prior to fix ptr_compare_0() has 3.7% samples in OLTP-RO in-memory. Fix brings this down to 1.8% (all memcmp samples) - Innodb : fix UT_RELAX_CPU to be defined as YieldProcessor, as was also originally intended (but intention was lost in the #ifdef maze This reduces number of ut_delay() samples in profile from 1.5% to 0.5%
* | | | | Merge mariadb 5.3->mariadb 5.5unknown2012-03-241-1/+1
|\ \ \ \ \ | |/ / / /
| * | | | mergeSergei Golubchik2012-03-211-1/+1
| |\ \ \ \ | | |/ / /