Commit graph

1252 commits

Author SHA1 Message Date
Rich Prohaska
876b3a7909 #148 change the default of tokudb_hide_default_row_format to ON 2013-12-22 16:03:10 -05:00
Sergei Golubchik
ffa8c4cfcc Percona-Server-5.6.14-rel62.0 merge
support ha_innodb.so as a dynamic plugin.
* remove obsolete *,innodb_plugin.rdiff files
* s/--plugin-load=/--plugin-load-add=/
* MYSQL_PLUGIN_IMPORT glob_hostname[]
* use my_error instead of push_warning_printf(ER_DEFAULT)
* don't use tdc_size and tc_size in a module

update test cases (XtraDB is 5.6.14, InnoDB is 5.6.10)
* copy new tests over
* disable some tests for (old) InnoDB
* delete XtraDB tests that no longer apply

small compatibility changes:
* s/HTON_EXTENDED_KEYS/HTON_SUPPORTS_EXTENDED_KEYS/
* revert unnecessary InnoDB changes to make it a bit closer to the upstream

fix XtraDB to compile on Windows (both as a static and a dynamic plugin)

disable XtraDB on Windows (deadlocks) and where no atomic ops are available (e.g. CentOS 5)


storage/innobase/handler/ha_innodb.cc:
  revert few unnecessary changes to make it a bit closer to the original InnoDB
storage/innobase/include/univ.i:
  correct the version to match what it was merged from
2013-12-22 17:06:50 +01:00
Rich Prohaska
6e3e7fb5fc register the tokudb_alter_print_error variable 2013-12-20 09:14:56 -05:00
Rich Prohaska
8bcf6c5379 add a session variable that controls whether or not alter table errors are printed to stderr 2013-12-20 07:28:08 -05:00
Rich Prohaska
295947c6f8 #157 fix tokudb::index_next_same error handling 2013-12-18 16:04:05 -05:00
Sergey Petrunya
41208f6e5b MDEV-5426: Assertion `toku_ft_needed_unlocked(src_h)' failed (errno=11) ...
- the problem was caused by EXPLAIN INSERT SELECT. For that statement, 
  the code would call select_insert::prepare2(), which would call 
  handler->ha_start_bulk_insert().  The corresponding handler->end_bulk_insert() 
  call is made from select_insert::send_eof or select_insert::abort_result_set 
  which are never called for EXPLAIN INSERT SELECT.
- Fixed by re-using approach of mysql-5.6: don't call ha_start_bulk_insert() if 
  we are in EXPLAIN.
2014-01-21 14:02:56 +04:00
Sergei Golubchik
50808b30d2 MDEV-5396 Assertion `Handlerton: r==0 ' failed (errno=0) on EXPLAIN with TokuDB tables
Fix EXPLAIN and CREATE SELECT to join_free() (and, thus, ha_index_end())
before ha_commit_trans().
2013-12-17 17:26:54 +01:00
Rich Prohaska
5c147cc943 Tokutek/mysql56#42 turn on HA_PRIMARY_KEY_REQUIRED_FOR_POSITION to fix failing partition tests on mysql 5.6 2013-12-16 07:47:36 -05:00
Sergei Golubchik
d28d3ba40d 10.0-base merge 2013-12-16 13:02:21 +01:00
Sergei Golubchik
6bf10fac44 5.5 merge 2013-12-15 15:57:26 +01:00
Sergei Golubchik
39a8d7965d don't run tokudb tests for --embedded by default 2013-12-15 15:55:15 +01:00
Sergei Golubchik
47b615d84b Fix tokudb.hotindex-insert-bigchar failure in buildbot.
This test needs at least 320M for tokudb-max-lock-memory.
Normally tokudb-max-lock-memory is auto-sized to be 1/16th
of the available RAM size, and many our test VMs have 4G of RAM.
2013-12-15 11:31:57 +01:00
Rich Prohaska
484c30bdf2 #152 fix MDEV-5399 2013-12-14 10:05:22 -05:00
Rich Prohaska
503863aeac remove junk debug code 2013-12-12 16:23:15 -05:00
Rich Prohaska
5172855d16 #150 cleanup cursor when a txn is retired 2013-12-12 16:14:12 -05:00
Sergei Golubchik
5313e00199 fix tokudb tests that fail in --ps-protocol
https://github.com/Tokutek/ft-engine/issues/153
2013-12-12 14:58:44 +01:00
Sergei Golubchik
976e242c78 update tokudb version. mask tests that are broken there. 2013-12-12 11:42:00 +01:00
Rich Prohaska
521cf40b4e port to mysql 5.6.15 2013-12-11 15:47:25 -05:00
Rich Prohaska
2924878769 #141 fix another open close race 2013-12-10 17:16:57 -05:00
Rich Prohaska
12e3e629a4 #141 fix table open and close race 2013-12-09 15:55:53 -05:00
Rich Prohaska
610474f974 #150 cleanup indexing cursor when a txn is retired 2013-12-08 16:36:37 -05:00
Rich Prohaska
b65e6e3d74 #141 redo table open and close locking to avoid table opening pileup 2013-12-05 11:59:34 -05:00
Rich Prohaska
7e71d5fd62 #142 remove tokudb meta dictionary 2013-12-03 13:50:34 -05:00
Rich Prohaska
dde0c43553 #142 remove tokudb_meta_mutex 2013-12-03 13:34:21 -05:00
Rich Prohaska
11e4b8b84c Tokutek/mysql#10 use DB_TYPE_TOKUDB in mysql 5.5 2013-12-02 14:49:08 -05:00
Rich Prohaska
affe5ac600 #15 set the tokudb plugin type to DB_TYPE_TOKUDB 2013-12-02 12:46:28 -05:00
Rich Prohaska
4c988a01bc #17 support mariadb clustering option 2013-12-01 17:56:16 -05:00
Rich Prohaska
2df023d3dd Tokutek/mariadb#12 rebase to mariadb-5.5.34 2013-11-28 09:51:21 -05:00
Sergei Golubchik
c2839e2cf2 mysql-test: allow suite.pm add its suite to the default list.
run tokudb suites by default.
mark big and slow tests tokudb.change_column_all_1000_1 and
tokudb.change_column_all_1000_10 test as --big
2013-11-27 21:58:36 +01:00
Sergei Golubchik
46ea51ff77 tokudb post-merge compilation fixes 2013-11-23 13:05:35 +01:00
Sergei Golubchik
c6d30805db 5.5 merge 2013-11-23 00:50:54 +01:00
Rich Prohaska
215d477904 #147 change column names in the tokudb_file_map 2013-11-22 06:33:16 -05:00
Rich Prohaska
3840ef6b44 #87 grab exclusive MDL in the tokudb alter table commit function 2013-11-21 17:42:54 -05:00
Sergei Golubchik
98c609248b set CMP0022 policy to avoid cmake warnings 2013-11-20 11:50:27 +01:00
Sergei Golubchik
ff41edab6c merge with ft-engine and ft-index up to tag:tokudb-7.1.0 2013-11-19 15:35:31 +01:00
Rich Prohaska
466b63aa48 #146 add debug trace to tokudb info schema tables 2013-11-14 21:32:38 -05:00
Sergei Golubchik
4157185f24 10.0-base merge 2013-11-13 23:03:48 +01:00
Sergei Golubchik
bdd883ed9a 5.5. merge 2013-11-13 14:07:58 +01:00
Sergei Golubchik
fb46f35f05 mark ft-index cmake variables as advanced 2013-11-11 17:20:10 +01:00
Sergei Golubchik
db635ab590 MDEV-5124 cmake failure when fullhostname is not resolved
expand fullhostname inside the string, to have an empty string, not nothing,
when fullhostname is not defined
2013-11-11 09:30:48 +01:00
Sergei Golubchik
3d57c343e5 MDEV-5038 put tokudb into the server package 2013-11-11 09:30:35 +01:00
Rich Prohaska
fb6d749f2f start port of tokudb to mariadb 10 2013-11-10 16:45:11 -05:00
Rich Prohaska
b8d7ee9795 basic tokudb running in mysql 5.7 2013-11-09 16:55:12 -05:00
Rich Prohaska
76a9489f9b Tokutek/mysql56#5 optimize read only transactions 2013-11-04 09:45:42 -05:00
Sergei Golubchik
97bbf3af34 update tokudb test results 2013-11-01 20:31:27 +01:00
Rich Prohaska
97f1989efb compile when tokudb row format compression types are not defined 2013-10-24 08:30:19 -04:00
Rich Prohaska
a8af167fe3 tokutek/mysql56#23 turn on extended keys for tokudb 2013-10-23 12:30:07 -04:00
Zardosht Kasheff
62abb74a6c refs Tokutek/mongo#645, fix call to hot_optimize 2013-10-21 16:22:01 -04:00
Rich Prohaska
43dec55024 #131 make fast and small aliases for quicklz and lzma 2013-10-18 15:25:37 -04:00
Rich Prohaska
dc4e26d618 #131 make small and fast aliases for quicklz and lzma 2013-10-18 13:01:59 -04:00
Rich Prohaska
09ce3fad57 #128 change the comment on the lock timeout session variable 2013-10-17 11:50:57 -04:00
Rich Prohaska
056b8ee352 #127 make tokudb_loader_memory_size a session variable 2013-10-15 10:29:48 -04:00
Rich Prohaska
d7e467295e #128 change tokudb_lock_timeout to session variable 2013-10-10 16:25:57 -04:00
Rich Prohaska
ef6add4cac #122 change default compression to zlib and add a session variable to control create info row format 2013-10-07 09:11:51 -04:00
rich prohaska
1e46d54027 tokutek/ft-engine#94 tokutek/ft-index#80 configure an upper bound on loader memory reservations
Merge branch 'loadermem80'
2013-10-07 08:38:50 -04:00
Rich Prohaska
36737f6c36 tokutek/ft-index#76 add US Patent 8,489,638 2013-10-04 16:44:43 -04:00
Rich Prohaska
e0ecc3f2f5 #121 change default basement node size to 64KB from 128KB 2013-10-04 16:05:34 -04:00
Rich Prohaska
26ccf76d45 tokutek/ft-index#80 tokutek/ft-engine#94 add tokudb_loader_memory_size system variable that controls the size of each loader memory size 2013-10-03 13:56:57 -04:00
Rich Prohaska
2277254793 #90 set tokudb_last_lock_timeout to a string parsable by the python json module 2013-10-02 12:14:14 -04:00
Rich Prohaska
e9084aaaf2 tokutek/ft-engine#111 tokutek/ft-index#74 merge the tokumx error message for transparent huge pages into tokudb 2013-09-30 13:18:07 -04:00
Rich Prohaska
c8fc4d662b #80 default compress tokudb bulk loader temp files 2013-09-30 11:08:53 -04:00
Rich Prohaska
e99cb96b9d #86 tokudb lock tree info schema 2013-09-27 13:43:43 -04:00
Rich Prohaska
a9caa21f48 remove cruft 2013-09-27 13:14:23 -04:00
Rich Prohaska
f79b8486a2 #104 default capture lock timeout conflict info into tokudb_last_lock_timeout variable 2013-09-27 09:43:39 -04:00
Rich Prohaska
3152434eeb #92 add compiler and cmake checks from mariadb 2013-09-26 12:05:54 -04:00
Rich Prohaska
9e67557d89 #104 write frm for existing tables before the txn is committed 2013-09-26 09:53:50 -04:00
unknown
9d83468e78 merge 5.5 -> 10.0-base 2013-09-25 21:07:06 +03:00
Rich Prohaska
bb1fdf7ddd #92 use parent txn in ::delete_or_rename_table. this removes error messages when running dict_leak_3518 test 2013-09-24 14:27:27 -04:00
Rich Prohaska
c939c606e8 #97 use ${ZLIB_LIBRARY} 2013-09-24 10:26:27 -04:00
Rich Prohaska
55ef63ac00 #99 reduce analyze time to 5 seconds (from 60 seconds). this will probably allow > 1M rows to be in the cardinality computation 2013-09-23 16:13:40 -04:00
Rich Prohaska
935f78acc2 #92 add key_is_clustering accessor 2013-09-23 14:32:48 -04:00
Rich Prohaska
f0629146c3 #92 remove memcpy_fixed (no longer necessary) 2013-09-23 13:45:07 -04:00
Rich Prohaska
5cf85b79cd #92 simplify my_free calls 2013-09-23 13:42:48 -04:00
Michael Widenius
5f0c91998a TokuDB fixes:
- Better error message when using huge pages
- Fixed link error
- Test suite should run even on system with huge pages

storage/tokudb/ft-index/cmake_modules/TokuThirdParty.cmake:
  Fixed that linking works on systems that uses lib64
storage/tokudb/ft-index/portability/huge_page_detection.cc:
  Better error message
storage/tokudb/mysql-test/rpl/suite.pm:
  Test suite should run even on system with huge pages
storage/tokudb/mysql-test/tokudb/suite.pm:
  Test suite should run even on system with huge pages
2013-09-23 20:17:03 +03:00
Zardosht Kasheff
577470e05a refs #94, for keys with strings, add a memcmp at the end of the comparison
function if we are doing comparisons in the fractal tree, so that case-insensitivities
get resolved. Comparisons done inside the handlerton are unaffected.
2013-09-20 11:22:39 -04:00
unknown
e5746665c9 merge 10.0-base -> 10.0 2013-09-26 21:20:15 +03:00
Sergei Golubchik
828be0d9ba TokuuDB: add handlerton::discover_table_existence() method 2013-09-25 19:42:28 +02:00
Sergei Golubchik
20031c6273 Enable TokuDB online ALTER
sql/create_options.cc:
  an utility function to compare two filled-in engine_option structures
sql/sql_table.cc:
  * two keys are different if their option_struct's differ
    (for ALTER TABLE DROP key, ADD key)
  * engines doing inplace alter must see the new frm image
2013-09-25 19:42:22 +02:00
Sergei Golubchik
181b13d926 simplify CMakeLists.txt for cassandra/connect engines
now, if the dynamic plugin puts itself in a distinct component, then
* ${plugin}.cnf file is generated and installed automatically
* a separate RPM is generated automatically
* necessary FILELIST/PROVIDES/OBSOLETES/REQUIRES are filled in automatically
2013-09-25 19:32:14 +02:00
Michael Widenius
26474cd204 Fixed issue where tokudb xz used lib64 in some cases, which caused a link failure 2013-09-23 20:25:14 +03:00
Rich Prohaska
9c47f41e3b #81 cleanup thread variables a bit 2013-09-20 09:53:15 -04:00
Sergei Golubchik
2fe0836eed 5.5.33a merge 2013-09-20 11:29:01 +02:00
Sergei Golubchik
27c9ed11ff TokuDB now compiles and passes all tests as in 5.5 2013-09-21 10:16:06 +02:00
Rich Prohaska
002d451e7c #81 denormalize dname in tokudb_file_map 2013-09-19 14:24:13 -04:00
Sergei Golubchik
43f4e364f0 MDEV-5021 tokudb ft-index libraries are build with -DWITHOUT_TOKUDB=1 2013-09-19 20:19:10 +02:00
Rich Prohaska
9f5293de5b #81 cleanup thread variables 2013-09-19 13:34:55 -04:00
Sergei Golubchik
4ec2e9d7ed 5.5 merge and fixes for compiler/test errors 2013-09-18 13:07:31 +02:00
Leif Walsh
a4f82b7d99 added -flto -fuse-linker-plugin to RelWithDebInfo #77 2013-09-17 13:02:58 -04:00
unknown
28a8d40c22 Tokudb made compilig. 2013-09-23 12:17:18 +03:00
Sergey Vojtovich
8e9cead365 Fixed tokudb with ccache build failure. 2013-09-17 17:37:03 +04:00
Rich Prohaska
de7b04efff refs #82 delete the user data information schemas 2013-09-17 08:04:02 -04:00
Rich Prohaska
770533e2dd refs #83 cond compile gdb on error feature 2013-09-17 07:43:22 -04:00
Rich Prohaska
53c7335563 refs #71 basic lock tree visualization 2013-09-15 09:58:19 -04:00
Sergei Golubchik
adf637dff6 tokudb buildbot fixes
BUILD/compile-solaris-amd64:
  * call cmake directly, don't go through three layers of wrappers
    (but preserve the compile-solaris-amd64 file - buildbot uses it for 5.1 and 5.5)
  * disable jemalloc, it doesn't compile on our sol10-64 box
storage/federated/ha_federated.cc:
  clang warning
storage/tokudb/CMakeLists.txt:
  * require cmake-2.8.9, because 2.8.8 doesn't add -fPIC for POSITION_INDEPENDENT_CODE
    property that ft-index CMakeLists.txt files are using
2013-09-12 10:10:09 +02:00
Sergei Golubchik
265bbf5fe1 introduce sysconf2dir, install tokudb.conf there, both in rpm and deb 2013-09-10 22:59:18 +02:00
Sergei Golubchik
3de5613445 INSTALL_DOCUMENTATION function for CMakeLists.txt
It puts files in the correct location for rpm/deb packages.
2013-09-10 22:53:44 +02:00
Rich Prohaska
60a4370f9a refs #71 rearrange IS code 2013-09-10 06:22:25 -04:00
Sergei Golubchik
3e5b21067b MariaDB-tokudb-engine.rpm
cmake/plugin.cmake:
  * auto-create an rpm for a plugin, if it places itself in a new component
storage/tokudb/CMakeLists.txt:
  install tokudb in COMPONENT tokudb-engine.
  this automatically creates a separate rpm for it.
2013-09-09 14:09:09 +02:00
Sergei Golubchik
5b2e3b01f0 fixes for buildbot
* disable jemalloc on windows (cannot run ./configure)
* disable jemalloc on ancient cmake (ExternalProject does not work)
* rewrite TokuDB compiler test to check for features, not versions (to work on cmake before 2.8.11)
* fix ft-index to not add VALGRIND_INCLUDE_DIR to includes, if no valgrind was found
* correct the package name in FindValgrind.cmake (for find_package(... REQUIRED) to work)
* disable ft-index tests by default (faster compilation and they aren't used anyway)
* don't build ft-index with valgrind by default (otherwise it *requires* valgrind, it doesn't auto-detect)
* use --loose-tokudb in the .opt file
2013-09-09 14:02:42 +02:00
Sergei Golubchik
3a52826183 remove symlinks from the tree
(otherwise one cannot even pull on windows)
2013-09-09 14:00:48 +02:00