Commit graph

8062 commits

Author SHA1 Message Date
Annamalai Gurusami
0b40def788 Merge from mysql-5.1 to mysql-5.5 2013-05-12 19:45:42 +05:30
Annamalai Gurusami
87a1918fe6 Fixing a build issue. In InnoDB plugin, the function
innobase_convert_to_filename_charset() was by mistake kept within
the conditional compilation of UNIV_COMPILE_TEST_FUNCS.  Now placing
the function out of UNIV_COMPILE_TEST_FUNCS.  Also, removed the
unnecessary log message (as in 5.6+).
2013-05-12 19:41:25 +05:30
Michael Widenius
3bd6e4b8ee MDEV-3999: Valgrind errors 'invalid write' or assorted server crashes on concurrent flow with partitioned Aria tables
MDEV-3989: Server crashes on import from MariaDB mysqldump export with partitioned Aria table.

Problem was that bulk insert in aria was not properly protected against concurrent selects.


storage/maria/ha_maria.cc:
  Move settings of file->state to _ma_block_start_trans() to ensure that lock_key_trees is not changed by a concurrent bulk_insert.
storage/maria/ma_check.c:
  Added DBUG_ASSERT()
storage/maria/ma_open.c:
  Set start_trans to ma_start_trans for default behaviour.
storage/maria/ma_pagecrc.c:
  Removed test for 'non_transactional' as a now_transactinal could be reset while a flush was happening.
storage/maria/ma_state.c:
  Moved setting of info->state from external_lock to start_trans to protect against concurrent running bulk inserts.
  This works as the other threads will wait in thr_lock() until bulk_insert is done and keys are re-generated.
storage/maria/ma_state.h:
  Added _ma_start_trans()
2013-05-12 11:29:16 +03:00
Michael Widenius
4e9bf37f1f MDEV-4280: Assertion `empty_size == empty_size_on_page' failure in ma_blockrec.c or ER_NOT_KEYFILE on query with DISTINCT and GROUP BY
This could happen when using Aria for internal temporary files (default case) and using DISTINCT.
_ma_scan_restore_block_record() didn't work correctly if there was rows inserted, updated or deleted on the handler
between calls to _ma_scan_remember_block_record() and _ma_scan_restore_block_record().
The effect was that some DISTINCT queries that used remove_dup_with_compare() could fail.

.bzrignore:
  Ignore sql_yacc.hh
mysql-test/suite/maria/r/distinct.result:
  Test case for MDEV-4280
mysql-test/suite/maria/t/distinct.test:
  Test case for MDEV-4280
mysql-test/t/mysql.test:
  Fixed test suite (we could get error -1 in some cases)
sql/sql_select.cc:
  Break loop if restart_rnd_next() gives an error
storage/maria/ha_maria.cc:
  scan_restore_pos() can return disk fault error.
storage/maria/ma_blockrec.c:
  _ma_scan_remember_block_record() did incorrectly update scan.dir instead of scan_save.dir .
  _ma_scan_restore_block_record() didn't work correctly if there was rows inserted,updated or deleted on the handler
  between calls to _ma_scan_remember_block_record() and _ma_scan_restore_block_record().
  Fixed by adding counters for row changes and reading the current scan page if changes had been made.
storage/maria/ma_blockrec.h:
  scan_restore_pos() can return disk fault error.
storage/maria/ma_delete.c:
  Increment row_changes
storage/maria/ma_scan.c:
  scan_restore_pos() can return disk fault error.
storage/maria/ma_update.c:
  Increment row_changes
storage/maria/ma_write.c:
  Increment row_changes
storage/maria/maria_def.h:
  scan_restore_pos() can return disk fault error.
2013-05-11 15:55:11 +03:00
Michael Widenius
5b31f87858 MDEV-4231: Possible bug in function _ma_apply_undo_row_insert()
Added comment to clearify the code.


storage/maria/ma_blockrec.c:
  Added comment to clearify the code
  In case of out of memory or disk error, mark pages with LSN_IMPOSSIBLE to make it easier to know which pages have wrong information.
2013-05-11 12:20:21 +03:00
Annamalai Gurusami
03740f9d40 Merge from mysql-5.1 to mysql-5.5 2013-05-10 15:38:25 +05:30
Annamalai Gurusami
3df10469a2 Fixing a build issue. The function innobase_convert_to_system_charset()
is included only in the builtin InnoDB, and it is missed in InnoDB
plugin.  Adding this function in InnoDB plugin as well.
2013-05-10 15:35:40 +05:30
Vladislav Vaintroub
3b944843d2 Fix compile error 2013-05-09 23:25:57 +02:00
Sergei Golubchik
da846a153b Merge with XtraDB as of Percona-Server-5.5.30-rel30.2 2013-05-08 10:12:21 +02:00
Sergei Golubchik
e0a08c567a Compilation warnings.
openssl compilation problem.
2013-05-07 18:26:22 +02:00
Sergei Golubchik
b381cf843c mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
Sujatha Sivakumar
e246b4a5f5 Bug#16513588:"PREPARE_COMMIT_MUTEX" IS NOT FREED DURING
TRANSACTION ROLLBACK

Problem:
=======
"prepare_commit_mutex" is acquired during "innobase_xa_prepare"
and it is freed only in "innobase_commit". After prepare,
if the commit operation fails the transaction is rolled back
but the mutex is not released.

Analysis:
========
During transaction commit process transaction is prepared and
the "prepare_commit_mutex" is acquired to preserve the order
of commit. After prepare write to binlog is initiated.

File: sql/handler.cc
      if (error || (is_real_trans && xid &&
----->             (error= !(cookie= tc_log->log_xid(thd, xid)))))
      {
        ha_rollback_trans(thd, all);

In the above code "tc_log->log_xid" operation fails.

When the write to binlog fails the transaction is rolled back
with out freeing the mutex. A subsequent "INSERT" operation
tries to acquire the same mutex during its commit process
and the server aborts.

Fix:
===
"prepare_commit_mutex" is freed during "innobase_rollback".

storage/innobase/handler/ha_innodb.cc:
  Added code to free "prepare_commit_mutex"
2013-05-07 13:30:25 +05:30
Annamalai Gurusami
2c551d0e9c Bug #16722314 FOREIGN KEY ID MODIFIED DURING EXPORT
Bug #16754901 PARS_INFO_FREE NOT CALLED IN DICT_CREATE_ADD_FOREIGN_TO_DICTIONARY

Merging the fix from mysql-5.5 to mysql-5.5.32-release.
2013-05-06 20:31:26 +05:30
Annamalai Gurusami
1b26d59192 Merge from mysql-5.1 to mysql-5.5 2013-05-06 19:57:49 +05:30
Annamalai Gurusami
bf7325bb6b Bug #16722314 FOREIGN KEY ID MODIFIED DURING EXPORT
Bug #16754901 PARS_INFO_FREE NOT CALLED IN DICT_CREATE_ADD_FOREIGN_TO_DICTIONARY

Problem:

There are two situations here.  The constraint name is explicitly
given by the user and the constraint name is automatically generated
by InnoDB.  In the case of generated constraint name, it is formed by
adding table name as prefix.  The table names are stored internally in
my_charset_filename.  In the case of constraint name explicitly given
by the user, it is stored in UTF8 format itself.  So, in some
situations the constraint name is in utf8 and in some situations it is
in my_charset_filename format.  Hence this problem.

Solution:

Always store the foreign key constraint name in UTF-8 even when
automatically generated.

Bug #16754901 PARS_INFO_FREE NOT CALLED IN DICT_CREATE_ADD_FOREIGN_TO_DICTIONARY

Problem:

There was a memory leak in the function dict_create_add_foreign_to_dictionary().
The allocated pars_info_t object is not freed in the error code path.

Solution:

Allocate the pars_info_t object after the error checking.

rb#2368 in review
2013-05-06 16:28:56 +05:30
zkasheff
d5fb75ca2f refs #6684, fix icp bug of queries that do multiple index_next_same calls with the same cursor 2013-04-30 18:48:08 -04:00
unknown
714d9bc5ce merge from mysql-5.1 2013-04-30 20:40:38 +02:00
unknown
92989fdeed Bug#16405422 - RECOVERY FAILURE, ASSERT !RECV_NO_LOG_WRITE
eliminate a race condition over recv_sys->n_addrs which might result in a database corruption
in recovery, without reporting a recovery error.

recv_recover_page_func(): move the code segment that decrements recv_sys->n_addrs
  to the end of the function, after the call to mtr_commit()

rb://2282 approved by Inaam
2013-04-30 20:39:12 +02:00
Marko Mäkelä
3d264bb1e9 Bug#16720368 INNODB IGNORES *.IBD FILE BREAKAGE AT STARTUP
After a clean shutdown, InnoDB will not check the *.ibd file headers,
for maximum performance. This is unchanged before and after this
patch.

What this fix addresses is the case when crash recovery is
needed. Previously, InnoDB could load a corrupted tablespace file.

buf_page_is_corrupted(): Add the parameter check_lsn.

fil_check_first_page(): New function, to perform a consistency check
on the first page of a file. This can be overridden by setting
innodb_force_recovery.

fil_read_first_page(), fil_open_single_table_tablespace(),
fil_load_single_table_tablespace(): Invoke fil_check_first_page().

open_or_create_data_files(): Check the status of
fil_open_single_table_tablespace().

rb#2352 approved by Jimmy Yang
2013-04-30 13:39:50 +03:00
Leif Walsh
ce338d55ac #10 add binary directory's toku_include dir 2013-04-27 15:38:20 -03:00
Leif Walsh
c5d0f4dad6 try fixing names 2013-04-27 15:22:31 -03:00
Leif Walsh
8871076abc #10 change handlerton cmake to include ft-index directly 2013-04-27 13:54:48 -04:00
Annamalai Gurusami
19f93f6bd8 Bug #15973904 INNODB PARTITION CODE HOLDS LOCK_OPEN AND SLEEPS WHILE
OPENING MISSING PARTITION

In the ha_innobase::open() call, for normal tables, there is no retry logic.
But for partitioned tables, there is a retry logic introduced as fix for:

http://bugs.mysql.com/bug.php?id=33349  
https://support.mysql.com/view.php?id=21080

The Bug#33349, does not provide sufficient information to analyze the original
problem.  The original problem reported by bug#33349 is also minor (just an
annoyance and no loss of functionality).  Most importantly, the retry logic
has been introduced without any associated test case.

So we are removing the retry logic for partitioned tables.  When the original
problem occurs, a different solution will be explored.
2013-04-24 08:47:30 +02:00
Annamalai Gurusami
1b892c7759 Merge from mysql-5.1 to mysql-5.5 2013-04-24 08:42:59 +02:00
Rich Prohaska
53b0839a5b res #6655 change tokudb plugin licenses to GPL 2013-04-21 11:58:55 -04:00
Vladislav Vaintroub
4d78392be5 MDEV-4398 -
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)
2013-04-19 12:08:55 +02:00
Sergei Golubchik
07315d3603 strmake_buf(X,Y) helper, equivalent to strmake(X,Y,sizeof(X)-1)
with a bit of lame protection against abuse.
2013-04-17 19:42:34 +02:00
Rich Prohaska
5a57ce4efa refs #6372 really use DB_TYPE_TOKUDB on mysql 5.6, will need an upgrade procedure
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@55333 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:19 -04:00
Yoni Fogel
5f919625c1 refs #6372 Merge table delete bugfix to main
svn merge https://svn.tokutek.com/tokudb/mysql.com/mysql-5.5.30-6372b https://svn.tokutek.com/tokudb/mysql.com/mysql-5.5.30
svn merge https://svn.tokutek.com/tokudb/mysql.com/mariadb-5.5.30-6372b https://svn.tokutek.com/tokudb/mysql.com/mariadb-5.5.30
svn merge https://svn.tokutek.com/tokudb/mysql/tokudb-engine/tokudb-engine-6372b https://svn.tokutek.com/tokudb/mysql/tokudb-engine/tokudb-engine


git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@55264 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:19 -04:00
Yoni Fogel
9e6dffba89 fixes #6485 Move memory management for information_schema.global_status into tokudb_init_func and tokudb_end
Everything else is stored directly in the status rows.
Should be more thread safe if mysql/mariadb removes LOCK_status now.

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@55091 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:19 -04:00
Rich Prohaska
fbae97d561 refs #6444 export global status variables on mariadb
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@55027 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:19 -04:00
Rich Prohaska
1b30fe8dc1 refs #6090 support extended keys in tokudb
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54920 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:19 -04:00
Rich Prohaska
f8a28dc1b7 refs #6372 require DB_TYPE_TOKUDB to compile the handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54888 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:19 -04:00
Rich Prohaska
0f024fd95c refs #6089 build handlerton without 5.6 alter table if we want
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54823 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:19 -04:00
Rich Prohaska
17c3f9eebe refs #6346 fix analyze time limit
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54692 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:19 -04:00
Rich Prohaska
36d80a52b9 refs #6184 run tests on darwin for fun
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54657 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:19 -04:00
Rich Prohaska
e7a2d9874d refs #6184 port some handlerton test to darwin
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54621 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:19 -04:00
Rich Prohaska
a7fff76722 refs #6184 put an assert in a simple template test
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54568 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:19 -04:00
Rich Prohaska
a71feb8ac4 refs #6184 run cardinality tests with valgrind
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54567 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:19 -04:00
Rich Prohaska
195c8e6098 refs #6184 turn up the warnings on the handlerton unit tests
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54539 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Yoni Fogel
cee5f887ad refs #6286 Add infrastructure to use column names for info schema
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54506 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Zardosht Kasheff
575867e17c refs #6278, merge to main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54501 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Rich Prohaska
3505eab018 refs #6184 run handlerton unit tests with valgrind
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54494 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Yoni Fogel
e79f0f5bcb refs #5820 Merge information schema to mainline
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54478 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Rich Prohaska
32156c75ba refs #6184 new cardinality and status code with better unit tests
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54450 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Yoni Fogel
70107a436e fixes #6086 Merge 6086 to main. We now read in basement nodes if a full keyrange resides in it so that we can answer more accurately.
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54342 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Zardosht Kasheff
295d6879bf refs #6058, make a handlerton fix for stored functions
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54330 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Rich Prohaska
56541a5b1d refs #6220 compile handlerton with gcc 4.4
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54309 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Zardosht Kasheff
c2ba13873e refs #6195, fix bug in add index where bf_info->key_to_compare was not set
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54295 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Zardosht Kasheff
9a88c96b14 refs #6058, merge handlerton piece to main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54235 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Zardosht Kasheff
04576080b2 refs #6195, fix was good, put it back
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54220 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Zardosht Kasheff
f2e2043d28 refs #6195, fix still not working, backing out
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54179 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Zardosht Kasheff
d22280144e refs #6195, make proper fix
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54177 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Zardosht Kasheff
822f9c0ed3 refs #6195, undo change, needs tweaking
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54130 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Zardosht Kasheff
df5cc2716c refs #6195, make fix
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54128 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Rich Prohaska
c90e932dff refs #6022 always compile analyze into the code
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53996 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Rich Prohaska
2cfb7b0af2 refs #6022 implement cardinality on the mainline
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53943 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Rich Prohaska
dc9b51bd8f refs #6112 use templates for the vlq functions in the tokudb handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53779 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Rich Prohaska
5a1ce0facd refs #5590 remove the old 5.5 add/drop index code
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53742 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Zardosht Kasheff
e3ff625156 closes #5955, fix ticket
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53733 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Rich Prohaska
5fd169998f refs #5852 ext keys in 5.6
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53707 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Rich Prohaska
a5c4dfa409 refs #6094 remove HA_GENERAL_ONLINE code from the handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53679 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Rich Prohaska
df81afac63 refs #5777 support extended keys for tokudb in maria 5.5
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53678 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Zardosht Kasheff
081af41d3a refs #6096, fix spacing
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53627 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:18 -04:00
Zardosht Kasheff
aa41abe2ed refs #6096, refs #2894, make fix
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53626 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
b6872dedf2 refs #6057, remove read-only transaction work from handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53465 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
528df9e27c refs #6026, merge fix to main from tokudb-engine.6026
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53434 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
4ecd9e7f55 refs #5104, fix compilation of MySQL 5.5
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53426 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
44b74074e0 refs #5104, merge ICP for MariaDB to main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53424 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
388450f65f refs #6028, compilation fix
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53329 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
b6ea904ddb refs #6028, fix fields_are_same_type
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53328 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
d39327de65 refs #6028, fix fractional timestamps in mariadb
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53322 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
6dc68e5efc refs #6024, merge MRR for MySQL 5.6 to main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53314 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
38468b6c2d refs #5571, merge to main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53300 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Rich Prohaska
691e2b7123 refs #6021 use ha_statistic_increment in the tokudb handlerton for table stats
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53248 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
a0bb1fd464 refs #5967, do not require flush logs to be run when changing checkpointing period
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53065 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
c0541aed8a refs #5974, fix on main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@52971 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Rich Prohaska
897964d945 refs #5947 rename to vlq
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@52810 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Rich Prohaska
8a00b4048f refs #5947 replace update base128 code with ft vlq code
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@52787 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
5d3b5955a5 refs #5888, rename variable to tokudb_directio
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@52610 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
ee7cdd33a0 closes #5899, fix stored functions
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@52597 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Leif Walsh
6cbecd5340 closes #5916 merge to main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@52402 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
ec3e034d61 refs #5888, add server variable to control directIO
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@52240 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Rich Prohaska
b5865c67f9 refs #5725 support SBR and mixed logging. remove the tokudb_enable_fast_update/upsert variables
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@52231 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
9f718b576a refs #5554, merge handlerton piece
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@52114 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Rich Prohaska
fdcda4145b refs #5886 merge blob updates to mainline
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@52092 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Rich Prohaska
ba8070f8c9 refs #5728 merge varchar fast updates to mainline
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51917 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Zardosht Kasheff
15ef968482 closes #5884, remove ha_tokudb_alter_51.cc, we no longer support 5.1, so it is dead
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51910 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Rich Prohaska
d54188599f refs #5876 always init pad_char to avoid erroneous compiler warning
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51837 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:17 -04:00
Rich Prohaska
ae0c1d330f refs #5862 support MDL X during alter prepare for various locking protocols
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51654 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
441ed1b542 refs #5780 build basic tokudb in percona server
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51373 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
f853378e16 refs #5824 debug the upsert deadlock bug
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51312 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
John Esmet
b0ffaa0bd3 refs #5722 remove dead code
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51214 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
cb10fa2d1c refs #4476 use user_defined_key_parts
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51199 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
aaad5d4986 refs #4476 tokudb patches ported to 5.6.9-rc
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51183 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
964aa7c2ba refs #4476 tokudb patches ported to 5.6.9-rc
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51182 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
f7bae26be1 refs #5727 address upsert code review comments
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51123 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
827a8007ca refs #4476 build tokudb on mysql-5.6.9-rc
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51085 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
ec5937a7c3 refs #5727 dont allow upserts with secondary keys and other issues raised during a code review
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51076 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
3d3a96748c refs #5789 fix compile problems from 51072
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51075 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Leif Walsh
95b36cca93 closes #5789 don't report the \0 at the end of dnames and inames
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51072 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
56e030f197 refs #5727 changes to upsert code to address code review comments
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51004 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
f20faf8fe6 refs #5763 error write row on auto increment overflow
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50963 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Leif Walsh
0bd13e7f74 closes #5757 merge information_schema.tokudb_fractal_tree_info and information_schema.tokudb_fractal_tree_block_map to main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50863 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
2168c92094 refs #5640 port handlerton to maria-5.5.28a
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50677 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
13c9009f9f refs #5254 get fast update strict mode check working on 5.5
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50603 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
01e0f0e6ec refs #5254 turn fast upserts on for tokudb
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50589 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
97aa60ee1f refs #5738 imp index_only_read_time for mysql 5.6
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50577 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
John Esmet
2323f2bb23 refs #5710 add status counter for the total number of primary key bytes inserted (key and value, no secondary indexes)
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50527 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
ddf062ffb1 refs #5254 cleanup upsert handler interface in tokudb
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50503 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
75d93eccfd refs #5726 upsert cleanup
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50486 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
3921faeecb refs #5726 get upserts working with hot indexing
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50484 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
41262d0795 refs #5254 cleanup the upsert handler interface
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50468 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Rich Prohaska
6f26ea8163 refs #5254 merge fast upserts to mainline. enabled on mysql 5.6 only for now.
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50363 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:16 -04:00
Yoni Fogel
8206e02a38 refs #5467 merge onto handlerton (kill putloader)
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50180 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
John Esmet
b6fae997fd refs #5351 fix a mysql test failure caused by non-shared read locks. turns out the real error is that we do not consistently return ER_LOCK_WAIT_TIMEOUT on cursor errors, so mysql-tests can be very fragile.
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50139 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Zardosht Kasheff
f98ea7a7ad closes #5691, add comment
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@50057 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Zardosht Kasheff
49a37d5a3b refs #4675, fix auto increment behavior on truncate to reset properly
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@49931 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
76cd9b2adc refs #5524 get tokudb working in mariadb-10.0.0 without any patches
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@49929 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
d5c5fa3837 refs #5679 grab exclusive MDL for drop index
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@49906 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
cbea44ad37 refs #5673 change tokudb_file_map field types to varchar
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@49889 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
John Esmet
ddb5ed4c45 refs #5351 no more set_lk_max
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@49857 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
3f24fa2cbc refs #5674 merge expand bug fix to mainline
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@49796 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
271e1cf6bd refs #5628 reverse expression order in ha_tokudb::store_lock (faster expression which is false most of the time first)
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@49081 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
db5f40a952 refs #4476 implement tokudb_disable_hot_alter for 5.6.7
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48973 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
a39ada3673 refs #4476 partition write frm data for the 5.6.7 handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48967 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Zardosht Kasheff
55cdf389ef refs #5585, make a fix to help joins using unique keys
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48891 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Zardosht Kasheff
c1840ae157 closes #5481, remove trx->should_abort
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48871 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
3e323a69f0 refs #5607 hot text/blob expansion
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48858 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
17f58abd07 refs #5511 float, double, and decimal can be unsigned and auto increment
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48808 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
39f432a210 refs #5511 simplify add_or_drop_column
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48784 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
e14d76c021 refs #5511 include unsigned float in our type comparitor
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48778 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
a456fd2e94 refs #4476 turn tokudb xa on
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48775 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
06f0bb47c3 refs #5511 detect auto increment type change and dont run it hot
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48766 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
4f8d2f096a refs #4363 hcr rename blob, text, enum, and time types
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48714 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
da0b2dc3e2 refs #4476 cleanup prepare inplace alter
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48631 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Zardosht Kasheff
b10eed1f5a closes #5547, remove code that was there only for MySQL 5.1
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48597 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
fa2e13881f refs #4476 get alter table working again in mysql 5.6.7
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48518 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
7895dc9d40 refs #5510 get varchar expansion with prefix keys working in mysql 5.6.7
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48516 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
776c903c8e refs #4476 turn on tokudb row format compression
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48497 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:15 -04:00
Rich Prohaska
2416d25414 refs #4476 basic handlerton on mysql 5.6.7-rc
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48486 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:14 -04:00
Rich Prohaska
8c9ba89711 refs #5524 turn XA on for MariaDB 10
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48373 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:14 -04:00
Rich Prohaska
fa0262d3a3 refs #5524 turn on hot alter table in mariadb 10
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48341 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:14 -04:00
Leif Walsh
2ccde85fc2 refs #5368 add lto flags to handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48336 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:14 -04:00
Rich Prohaska
d256c1e236 refs #5524 turn on row format compression in mariadb 10
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48268 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:14 -04:00
Leif Walsh
6dc92d11ff merge from 6.5.0: refs #5464 remove newlines in partitioned counter status output and in unused types' output
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48234 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:14 -04:00
Rich Prohaska
c166e05dea refs #5524 get basic tokudb running in mariadb 10
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48232 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:14 -04:00
Leif Walsh
9350e43a78 refs #5464 merge fix from 6.5.0 for printing partitioned counters from within the handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48126 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:14 -04:00
Rich Prohaska
af54fc04dc refs #5513 fix hot column expansion code review issues on the mainline
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48080 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:14 -04:00
Rich Prohaska
49f4651c49 refs #5502 delete frm data when partitioned tables are opened and the frm data is not being maintained by the handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48050 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:14 -04:00