Commit graph

726 commits

Author SHA1 Message Date
Zardosht Kasheff
35d63fc89f [t:3875], fix a bug where we forgot to reset size of range query buffer
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@33988 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:06 -04:00
Zardosht Kasheff
4905934f0f [t:3436], merge handlerton piece of bulk fetch to main line handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@33944 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:06 -04:00
Rich Prohaska
2713aa2bc5 #3854 initialize use_write_locks = false refs[t:3854]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@33833 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:06 -04:00
Zardosht Kasheff
35fe2313ba [t:3753], add basement node size param to handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@33051 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:06 -04:00
Zardosht Kasheff
35119e521f [t:3495], simplify estimate_num_rows
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@32762 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Rich Prohaska
0b3bcc8df0 #3557 merge 31879 from 5.0.5 to main refs[t:3557]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@31882 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Rich Prohaska
d543d10923 #3497 merge handlerton write lock changes to main refs[t:3497]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@31569 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Rich Prohaska
6b3c1ae1ce #3535 remove YESOVERWRITE from tokumysql handlerton refs[t:3535]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@31294 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
f019be508c [t:3486], fix issue on mainline
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@30542 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
b64804c830 [t:3400], modify versioning so that 5.0.3 cannot open a table modified by 5.0.4
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@30511 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
d37c7e5b97 [t:3400], fix usage of smartDBTs
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@30477 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
2af613ff76 [t:3406], fix issue on main line
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@30362 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
f055b22339 [t:3465], fix bug on mainline
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@30356 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
4128cb5016 for 3441, fix bug on mainline
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@30247 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
dd17fe0616 [t:3422], fix handlerton compiler warning
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@30233 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
efeac44123 [t:3400], remove extraneous TODO
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@30231 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
b207cfc7d0 [t:3400], fix a memory leak
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@30230 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
7b16d5c140 [t:3400], merge storing of frm file into main line
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@30228 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Rich Prohaska
b6b7c80dfe #3018 fix typo refs[t:3018]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@29798 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Rich Prohaska
51e2a01a09 #3018 build tokudb with mysql 5.5.9 refs[t:3018]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@29780 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
9dc23dfe55 [t:3266], make fix for virtual columns
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@29301 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
72b52d808a [t:3365], restore old check_if_incompatible_data function
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@29288 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
f23dac8741 [t:3198], address some code review comments
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@29155 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:05 -04:00
Zardosht Kasheff
6e0407a306 [t:3347], copy the handlerton over
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@29148 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Zardosht Kasheff
f5fa3751eb [t:3289], fix in main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@28546 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Rich Prohaska
22501d2c96 #3185 simplify the check info messages refs[t:3185]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@28197 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Rich Prohaska
d8e6202440 #3185 get ::check working with partitions refs[t:3185]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@27847 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Rich Prohaska
a4c7c03e6d #3185 use ctime_r in ::check. dont put timestamps into the result set, so that the mysql tests have a chance of passing refs[t:3185]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@27839 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Rich Prohaska
0764d6b338 #3185 fix the check status messages refs[t:3185]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@27809 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Rich Prohaska
88a5cb6c8f #3185 add ::check to the main handlerton refs[t:3185]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@27784 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Rich Prohaska
623f50ae0c #3213 fix the store_lock function (pattern after innodb's storage_lock function) refs[t:3213]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@27607 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Zardosht Kasheff
af26debfc9 [t:3221], fix on main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@27605 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Zardosht Kasheff
bb80422ed2 [t:3212], fix race condition
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@27537 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Zardosht Kasheff
86f568fb6b [t:3171], make fix after CR with Rich
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@27088 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Zardosht Kasheff
b14d398f60 [t:3171], fix problem
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@27086 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Zardosht Kasheff
c94830bb31 [t:3166], add handler piece
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@27083 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Zardosht Kasheff
29976beecd [t:3167],pass in correct number of DBs into put_multiple
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@27001 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Zardosht Kasheff
9a06ddf3b3 [t:3165], fix keyread_time for primary keys
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@26999 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Rich Prohaska
64527cc865 #3162 implement key_block_size in the handlerton closes[t:3162]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@26853 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Rich Prohaska
2ada495ede #3147 add tokudb_block_size session variable to allow experimentation refs[t:3147]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@26782 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Rich Prohaska
db41d7bfdb #3144 merge ::add_index cleanup bug fix to main refs[t:3144]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@26775 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Zardosht Kasheff
2ff2bdf73a [t:3117],[t:3118], merge handlerton pieces
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@26452 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:04 -04:00
Zardosht Kasheff
cb1e1f7fe9 [t:3110], make change to get partitions in MariaDB 5.2.3 to work right.
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@26399 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Rich Prohaska
a374fddc43 #3114 compile ha_tokudb.cc without warnings refs[t:3114]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@26383 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
20734d31dc [t:3084], tweak some more to fix mysql test failure
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@26073 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
d85b898584 [t:3084], tweak ::read_time
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@26057 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
b542805fc3 [t:3053], implement ha_tokudb::truncate
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25918 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
eed214ab8e [t:3073], fix bug
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25905 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
7f836645b1 [t:3051], make a default implementation for keyread_time that takes into account clustering keys
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25843 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
20d7817076 [t:3041], partial fix, error message improved, but still not perfect, will probably delay finishing this ticket til post 5.0
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25841 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
b7e19f235a [t:3048], fix 5.5 compilation issue
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25759 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
d6c2b6e463 [t:3049], fix bug
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25758 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
4a91e9d4d0 [t:3038], move changes to main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25704 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Rich Prohaska
b13560234e #3011 remove *extra from *multiple refs[t:3011]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25648 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Rich Prohaska
d93138ecf5 #3011 remove *extra from *multiple refs[t:3011]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25632 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
cfded943a2 [t:3015], make handlerton changes for update_multiple usage
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25474 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
27368bcaec [t:3015], make small changes
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25304 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
beabbcfd11 [t:3015], fix generate_row_for_put
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25298 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
0817b4fdb5 [t:3015], remove another unused variable
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25192 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
e8b4bc0e64 [t:3015], remove unused variable
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25191 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
cd08c3da33 [t:3014], use del_multiple in handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25189 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
66f8087e2f [t:2956], fix array initialization
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25116 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Zardosht Kasheff
b94b1724a8 [t:2952], do handlerton changes
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@24961 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:03 -04:00
Rich Prohaska
d7355bf984 #2940 port the handlerton to 5.5.6-rc
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@24103 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
8632093597 [t:2908], make the checksum command take a snapshot transaction
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@23837 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
517e746d78 [t:2927], fix issue
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@23783 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
476012e45b [t:2811], return HA_ERR_TABLE_DEF_CHANGED in index_init when TOKUDB_MVCC_DICTIONARY_TOO_NEW
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@23654 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
9678491efe [t:2811], fix records_in_range
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@23524 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
e9215c3ff6 [t:2811], merge handlerton MVCC changes to main line
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@23498 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
d685bf7a87 [t:2871], do not grab write lock due to lock tables if if doing alter table
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@23229 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
f469ff91b1 [t:2862], fix compilation bug
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@23071 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
45cc4d9ef6 [t:2862], fix calls to pre_acquire_read_lock in handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@23066 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
68a9d74a77 [t:2817], have prepare_drop_index reopen dictionaries if removing them fails
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@22869 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
f20511cc58 [t:2788], add end_bulk_insert(bool abort) for mariadb
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@22036 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
294d5a52aa [t:2801], refer to bulk loader put phase as a fetch for loading into an empty table
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@22012 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
49c36ad004 [t:2800], refer to put phase of add_index as fetch
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21954 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
a9087e0a82 [t:2799], fix issue in add index case
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21938 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
a5455ab485 [t:2797], fix bug on main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21933 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
8d4dedefd7 [t:2789], fix bug that corrupts data on main line
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21932 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
176a41e7be [t:2780], report loader progress as percentage with less precision
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21826 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:02 -04:00
Zardosht Kasheff
676b23085e [t:1078], check in savepoint implementation to main line
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21825 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Rich Prohaska
8be04fd8e0 #2775 closes[t:2775] conditionally include tokutek enhancements in the handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21722 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
2cea2589e5 [t:2746], fix on main, add status updates during is_index_unique
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21312 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
626e6009fa [t:2744], add progress info stating when we abort, fix on main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21292 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
56cf099550 [t:2745], fix in main, get is_index_unique to check if thd->killed is set
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21288 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
6b2ea7278e [t:2741], fix on main, before calling loader->abort, set status message to say we are aborting bulk load
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21287 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
4762c422e8 [t:2726], reset share->try_table_lock for all error paths
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21101 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
24d7fed269 [t:2726], if user aborts a bulk load, set share->try_table_lock to true
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21079 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
9be26d7cba [t:2727],[t:2728], make commit progress indicator more clear, have proper error show up when process is killed during loader->close
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21077 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
c1a91e69fe [t:2722], have end_bulk_insert call loader->abort if thread has been killed
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21050 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
c41974cb18 [t:2676], get handlerton compiling with new descriptor interface
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20779 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
59200b8b9b [t:2657], remove extraneous printf
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20655 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
fa5307dc6d [t:2651], add assert
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20574 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
dde1b035d4 [t:2651], fix test_row_packing so that incorrect results are not given
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20561 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
435fa7de1f [t:2563], have a test mode where errors are not printed to the log file when fileops fails due to DB_LOCK_NOTGRANTED
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20501 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
092ad2219b [t:2615], remove extraneous printf
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20451 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
cbba637333 [t:2615], get replace into optimization working with load data infile replace
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20398 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
96e3935d30 [t:2627], remove unused variable
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20366 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:01 -04:00
Zardosht Kasheff
ffafecce49 [t:2614], make tokudb_prelock_empty a session variable
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20227 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
a4ae3a509d [t:2599], upon finding a uniqueness violation, properly unpack the key
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20167 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
a6762fbad2 [t:2600], remove unnecessary table scan
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20141 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
b129068676 [t:2514], this fix is not ready yet, undo it
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20017 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
15e830f051 [t:2514], decouple tokudb_pk_insert_mode from HA_EXTRA_WRITE_CAN_REPLACE
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20000 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
f2de64d81c [t:2548], finish feature
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@19956 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
1aae85b36c [t:2548], make code simpler, prep for extending replace into optimization
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@19868 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
cd4531f5a9 [t:2572], fix crash in case create_loader fails
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@19863 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Rich Prohaska
3bd4ae3637 [t:2557], fix compilation error
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@19817 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
68489e8585 [t:2557], remove unneeded code for 5.5.4
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@19816 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
5bcb5a622c [t:2526], add HA_CLUSTERED_INDEX for clustering indexes
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@19656 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
a65d9efc11 [t:2549], add Martin option
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@19652 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
52f5774532 [t:2494], merge handlerton portion to main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@19074 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
043deaca92 [t:2491], set share->try_table_lock to true in call to delete_all_rows
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18881 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:02:00 -04:00
Zardosht Kasheff
870a55543c [t:2335], merge handlerton bulk loader code to main
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18863 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Rich Prohaska
3727f6dd4a remove cruft from the tokudb-engine dir refs[t:2474]
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18834 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Rich Prohaska
383d555160 fix some handlerton gcc warnings closes[t:2478] #2478
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18802 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Rich Prohaska
772b7ed670 fix some gcc warnings in the handlerton. merge -c 18350 and -c 18442 to main refs[t:2478] #2478
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18800 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Zardosht Kasheff
dab9d9a4a8 remove printf's
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18288 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Zardosht Kasheff
5af2fb7b95 [t:2435], display amount of data_free in show table status
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18267 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Zardosht Kasheff
0611141884 [t:2433], re-estimate number of rows when doing show table status
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18225 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Zardosht Kasheff
eb210e5f68 [t:2425], make insert ignore and replace into optimizations work properly
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18212 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Zardosht Kasheff
b509f3ad10 [t:2356], remove dead code
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18114 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Zardosht Kasheff
306175f2ef [t:2403], set last_dup_key in update_row
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18045 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Zardosht Kasheff
8463490170 [t:2401],[t:2358], remove unnecessary uniqueness check and make insert ignore as fast as replace into on tables with no secondary indexes
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18033 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Zardosht Kasheff
f1488c2678 [t:2395], remove unused variables
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@17987 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Zardosht Kasheff
91d570d0ba [t:2356], make lock wait on reads user controlled
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@17986 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Zardosht Kasheff
7a07530515 [t:2383], change kc_info->field_lengths to 2 bytes perelement
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@17884 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:59 -04:00
Zardosht Kasheff
7bf625bbaa [t:2359], make replace into with no secondary indexes not create a child transaction
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@17717 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:58 -04:00
Zardosht Kasheff
121a938e8f [t:2357], do query backoff on pt queries
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@17716 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:58 -04:00
Zardosht Kasheff
c5508dd40f [t:2361], no longer assume that 3.0.x tables may be used with 3.1.0
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@17715 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:58 -04:00
Zardosht Kasheff
df93c2e056 [t:2355], make waits on writes user controlled
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@17707 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:58 -04:00
Zardosht Kasheff
6b6e2ab25c [t:2342], undo bad change
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@17485 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:58 -04:00
Zardosht Kasheff
2afaba778d [t:2342], some work for porting handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/src@17474 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
3b3b811946 [t:2332], make ha_tokudb changes so that when disk is full, error message sent to console
git-svn-id: file:///svn/mysql/tokudb-engine/src@17257 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
113906b064 [t:2314], remove unused variable
git-svn-id: file:///svn/mysql/tokudb-engine/src@17256 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
1801c67358 [t:2314], get updates to use put_multiple API
git-svn-id: file:///svn/mysql/tokudb-engine/src@17231 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
913285b148 [t:2325], remove DB_DBT_TEMPMEMORY
git-svn-id: file:///svn/mysql/tokudb-engine/src@17214 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
9c822f5ccc [t:2325], move to main
git-svn-id: file:///svn/mysql/tokudb-engine/src@17179 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
9d0dbb18c7 [t:2322], replace hash_ functions with my_hash_
git-svn-id: file:///svn/mysql/tokudb-engine/src@17142 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
f56a0572c2 [t:2322], fix remove struct st_table_share and replace with TABLE_SHARE
git-svn-id: file:///svn/mysql/tokudb-engine/src@17141 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
2fea626c00 [t:2298], do backoff when trying to prelock ranges
git-svn-id: file:///svn/mysql/tokudb-engine/src@17076 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
df89480b6b [t:2214], fix gcc warnings
git-svn-id: file:///svn/mysql/tokudb-engine/src@16972 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
0eb6a7e226 [t:2274], unpack only necessary blobs in range queries. Saves some mem copies
git-svn-id: file:///svn/mysql/tokudb-engine/src@16954 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
a98eae907c [t:2300], fix memory leak
git-svn-id: file:///svn/mysql/tokudb-engine/src@16952 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
37884cf78c [t:2266], do lazy update of auto inc val when it is not first column of key, before ,it used to only be when it was first column of a key
git-svn-id: file:///svn/mysql/tokudb-engine/src@16942 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
fba4bd6bf3 [t:2267], get rid of trx->iso_level, makes life easier
git-svn-id: file:///svn/mysql/tokudb-engine/src@16941 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:56 -04:00
Zardosht Kasheff
d6a39b213a [t:2254], put back DB_INHERIT_ISOLATION
git-svn-id: file:///svn/mysql/tokudb-engine/src@16939 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
2092ff6edb [t:2254], merge to main line
git-svn-id: file:///svn/mysql/tokudb-engine/src@16938 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
338a3265f3 [t:2262], make fix in main
git-svn-id: file:///svn/mysql/tokudb-engine/src@16623 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
ecb0ad0c44 [t:2151], more changes as result of code review
git-svn-id: file:///svn/mysql/tokudb-engine/src@16278 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
09c3c37d1d [t:2151], more changes as result of code review
git-svn-id: file:///svn/mysql/tokudb-engine/src@16277 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
3449ee16f8 [t:2151], more changes as result of code review, assert all db->close succeeds
git-svn-id: file:///svn/mysql/tokudb-engine/src@16275 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
42498ddc34 [t:2151], some changes as result of code review
git-svn-id: file:///svn/mysql/tokudb-engine/src@16274 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
83fd01094f [t:1979], remove old hack
git-svn-id: file:///svn/mysql/tokudb-engine/src@16249 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
9671cade8b [t:2219], cosmetic change
git-svn-id: file:///svn/mysql/tokudb-engine/src@16157 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
dbbda27f53 [t:2117], do simple waiting on a bunch of queries
git-svn-id: file:///svn/mysql/tokudb-engine/src@15881 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
501418e972 [t:2182], fix stupid bug
git-svn-id: file:///svn/mysql/tokudb-engine/src@15874 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
135e84ce72 [t:2181], [t:2182], plug transaction leak, cleanup some code
git-svn-id: file:///svn/mysql/tokudb-engine/src@15873 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
9daf64e772 [t:2176], write msg to error file when fileops operation cannot get locks
git-svn-id: file:///svn/mysql/tokudb-engine/src@15834 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
05adc885a9 [t:1979], fix more warnings
git-svn-id: file:///svn/mysql/tokudb-engine/src@15777 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
53a3013aea [t:1979], merge to main line
git-svn-id: file:///svn/mysql/tokudb-engine/src@15772 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
64d44b4364 [t:2054], rename some functions
git-svn-id: file:///svn/mysql/tokudb-engine/src@15470 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
9330998a0f [t:2054], some cosmetic changes
git-svn-id: file:///svn/mysql/tokudb-engine/src@15462 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
13eeb9b888 [t:2054], some cleanup of comparison function and of status.tokudb
git-svn-id: file:///svn/mysql/tokudb-engine/src@15455 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
5db66197f2 [t:2103], merge to main line
git-svn-id: file:///svn/mysql/tokudb-engine/src@15361 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:55 -04:00
Zardosht Kasheff
1810cfc0a3 [t:2084], move fix to main branch
git-svn-id: file:///svn/mysql/tokudb-engine/src@15161 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Rich Prohaska
8b1155db71 fix the track_progress method refs[t:2082]
git-svn-id: file:///svn/mysql/tokudb-engine/src@15110 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Rich Prohaska
5639894aa7 simplify the track_progress method refs[t:2082]
git-svn-id: file:///svn/mysql/tokudb-engine/src@15085 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Rich Prohaska
a4f10941b8 fixup progress tracking refs[t:2082]
git-svn-id: file:///svn/mysql/tokudb-engine/src@15063 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Rich Prohaska
973e436205 fine tune the sql cmd status refs[t:2082]
git-svn-id: file:///svn/mysql/tokudb-engine/src@15051 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Zardosht Kasheff
fc8186d9cb [t:2033], fix how we evaluated number of elements written
git-svn-id: file:///svn/mysql/tokudb-engine/src@14977 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Zardosht Kasheff
83c42a9b30 [t:2027], set error=0 on success
git-svn-id: file:///svn/mysql/tokudb-engine/src@14831 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Zardosht Kasheff
946caf2b7c [t:2027], move some common code to a function
git-svn-id: file:///svn/mysql/tokudb-engine/src@14819 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Yoni Fogel
0a3691f1b4 Addresses #2042 refs[t:2042] Fix race condition at lower level.
git-svn-id: file:///svn/mysql/tokudb-engine/src@14802 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Zardosht Kasheff
5e5b208921 [t:2048], add user variables that control how often status gets updated
git-svn-id: file:///svn/mysql/tokudb-engine/src@14786 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Zardosht Kasheff
be3509f5af [t:2033], increase how often status is updated for queries
git-svn-id: file:///svn/mysql/tokudb-engine/src@14785 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Zardosht Kasheff
24a9c87e9c [t:2033], add process info for queries
git-svn-id: file:///svn/mysql/tokudb-engine/src@14784 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Barry Perlman
18148cac75 Addresses #2042 refs[t:2042] Take correct checkpoint locks in correct sequence. Fixes deadlock in rename. Fixes race condition in delete.
git-svn-id: file:///svn/mysql/tokudb-engine/src@14754 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Zardosht Kasheff
f4ef69d8b0 [t:2012], make amount of data shown in show table status same as show in show engine tokudb user_data
git-svn-id: file:///svn/mysql/tokudb-engine/src@14681 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:54 -04:00
Zardosht Kasheff
e6e25f302c [t:2025], [t:2007], allow option for flattening in show user data, make function exit if thread has been killed
git-svn-id: file:///svn/mysql/tokudb-engine/src@14621 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
6fb765dbc8 [t:2022], fix some cleanup code
git-svn-id: file:///svn/mysql/tokudb-engine/src@14598 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
1373d388c2 remove build problems
git-svn-id: file:///svn/mysql/tokudb-engine/src@14593 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
412686a5a5 [t:1869], checkin fix with added variable to allow disabling of feature
git-svn-id: file:///svn/mysql/tokudb-engine/src@14521 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
5d0c5d23bc [t:1980], cosmetic changes, remove some tabs
git-svn-id: file:///svn/mysql/tokudb-engine/src@14516 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
98ce5154ce [t:1980], fix problem in rename_table
git-svn-id: file:///svn/mysql/tokudb-engine/src@14495 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
84df6cc11d [t:1980], [t:1981], merge back to mainline
git-svn-id: file:///svn/mysql/tokudb-engine/src@14493 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Rich Prohaska
40edfbb882 fix the 32bit linux compile problem [t:1999]
git-svn-id: file:///svn/mysql/tokudb-engine/src@14451 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
ca44b0d34f [t:1999], fix 32 bit compiler issue
git-svn-id: file:///svn/mysql/tokudb-engine/src@14442 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
562beba6a2 [t:885], add max_data_length
git-svn-id: file:///svn/mysql/tokudb-engine/src@14358 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
bf2e6311d9 [t:885], fix divide by zero error
git-svn-id: file:///svn/mysql/tokudb-engine/src@14354 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
72a0434700 [t:885], put entries for data_length, index_length, and mean_rec_length for show table status
git-svn-id: file:///svn/mysql/tokudb-engine/src@14345 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
e2cba2d4ed [t:1949], abstract transaction creation to own function for reuse in start_stmt
git-svn-id: file:///svn/mysql/tokudb-engine/src@14184 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
3c6b7cd274 [t:1929], fix cases where comparison needs to be done afterwards
git-svn-id: file:///svn/mysql/tokudb-engine/src@14108 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
b2f6d42898 [t:1930], remove heaviside functions
git-svn-id: file:///svn/mysql/tokudb-engine/src@14088 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
d960329eff [t:1938], make "delete from table" transactional by making it really really slow, by deleting all elements one by one, through MySQL
git-svn-id: file:///svn/mysql/tokudb-engine/src@14084 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
1a1810b7c4 [t:1929], fix bug
git-svn-id: file:///svn/mysql/tokudb-engine/src@14082 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:53 -04:00
Zardosht Kasheff
26c1c7e4e0 [t:1929], replace c_get functions in index_read with c_getf
git-svn-id: file:///svn/mysql/tokudb-engine/src@14079 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
5c07d5046e [t:1929], use getf functions in index_first and index_last
git-svn-id: file:///svn/mysql/tokudb-engine/src@14077 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
cddd75b29f [t:1951], make new infinity byte value COL_ZERO
git-svn-id: file:///svn/mysql/tokudb-engine/src@14076 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
e1f2f60141 [t:1859], remove extraneous printf
git-svn-id: file:///svn/mysql/tokudb-engine/src@13940 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
eea66f60a0 [t:1859], make lock tables not create a parent transaction,
fix prelocking that happens in lock tables

git-svn-id: file:///svn/mysql/tokudb-engine/src@13935 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
c6edb1c3da [t:1925], fix bug where hidden primary key was not being saved
git-svn-id: file:///svn/mysql/tokudb-engine/src@13914 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
baf1a5be88 [t:1925], remove unused variable current_row
git-svn-id: file:///svn/mysql/tokudb-engine/src@13869 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
3225e8928d [t:1925], use db->getf_set in ha_tokudb::read_row
git-svn-id: file:///svn/mysql/tokudb-engine/src@13867 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
00b424a4e9 [t:1925], use db->getf_set in a couple of places
git-svn-id: file:///svn/mysql/tokudb-engine/src@13866 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
28030fe334 [t:1928], remove dead code
git-svn-id: file:///svn/mysql/tokudb-engine/src@13863 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
1d285b80de addresses #1925, make all metadata retrieval from status.tokudb not use DB_DBT_MALLOC
git-svn-id: file:///svn/mysql/tokudb-engine/src@13846 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
48ad1acdde addresses #1923
git-svn-id: file:///svn/mysql/tokudb-engine/src@13833 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
1b8d07046f addresses #1913, fix replace into with respect to unique checks
git-svn-id: file:///svn/mysql/tokudb-engine/src@13816 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
a26f49a804 addresses #1883, fix bug
git-svn-id: file:///svn/mysql/tokudb-engine/src@13584 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
82362f855d addresses #1888, address comments made in CR
git-svn-id: file:///svn/mysql/tokudb-engine/src@13579 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
677eaca52e addresses #1858, change so opt only works when auto inc is first column of key
git-svn-id: file:///svn/mysql/tokudb-engine/src@13489 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
01f2fddeb7 addresses #1869, move out of main. This change will not go in as is
git-svn-id: file:///svn/mysql/tokudb-engine/src@13487 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
b17869b2a1 addresses #1852
changes from code review

git-svn-id: file:///svn/mysql/tokudb-engine/src@13403 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
ba2cb0fce4 addresses #1869
prelock entire table when you think you might have an empty table

git-svn-id: file:///svn/mysql/tokudb-engine/src@13357 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
ec82648ce1 addresses #1832
have truncate work even if cursors exist on dictionary

git-svn-id: file:///svn/mysql/tokudb-engine/src@13297 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
2b7a057d16 addresses #1858
remove auto increment overhead on bulk loads

git-svn-id: file:///svn/mysql/tokudb-engine/src@13202 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
a8e993e3cd addresses #1852, #1334
prelock ranges that are read in reverse order

git-svn-id: file:///svn/mysql/tokudb-engine/src@13150 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
946e8f8078 addresses #1841
fix small bug

git-svn-id: file:///svn/mysql/tokudb-engine/src@13096 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:52 -04:00
Zardosht Kasheff
eb74eb5bb9 addresses #1841, #1334
do prelocking in handler when we are going to do a range query that
gets all values with a key prefix

git-svn-id: file:///svn/mysql/tokudb-engine/src@13056 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
c127074043 addresses #1833
do a DB_YESOVERWRITE put when doing "replace into" on a table with no secondary indexes

git-svn-id: file:///svn/mysql/tokudb-engine/src@12996 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
3b7f4d410a addresses BUILD
fix compiler error

git-svn-id: file:///svn/mysql/tokudb-engine/src@12993 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
abfadfafcc addresses #1832, #1821
pre-acquire a table lock before attempting a truncate in the handlerton

git-svn-id: file:///svn/mysql/tokudb-engine/src@12985 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
5d513eaa19 addresses #1819
fix unpacking of fixed char fields

git-svn-id: file:///svn/mysql/tokudb-engine/src@12905 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
a48ecb2bea addresses #1813
make records_in_range not use heaviside function
could result to better perf on small queries

git-svn-id: file:///svn/mysql/tokudb-engine/src@12774 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
0d9348640d addresses #1803
implement ha_tokudb::index_read_last
using same implementation as every other storage engine

git-svn-id: file:///svn/mysql/tokudb-engine/src@12705 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
6dcda10c36 addresses #1797
git-svn-id: file:///svn/mysql/tokudb-engine/src@12631 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
12d3797b60 addresses #1795
make own version of blob packing and unpacking

git-svn-id: file:///svn/mysql/tokudb-engine/src@12630 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
ae6689eb13 addresses #1740
remove HA_FAST_KEY_READ from int_table_flags

git-svn-id: file:///svn/mysql/tokudb-engine/src@12470 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
e10e4c0ced addresses #1788
make updates faster
by not doing extraneous delete

git-svn-id: file:///svn/mysql/tokudb-engine/src@12434 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
2882af6375 addresses #1751
check if fn_format fails due to path being too long

git-svn-id: file:///svn/mysql/tokudb-engine/src@11890 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
440e2b3717 addresses #1751
fix buffers

git-svn-id: file:///svn/mysql/tokudb-engine/src@11874 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
2bc55318d0 addresses #1097
back out analyze table for this release

git-svn-id: file:///svn/mysql/tokudb-engine/src@11531 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
65dbfb2f0b addresses #1723
small change

git-svn-id: file:///svn/mysql/tokudb-engine/src@11524 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
ad9fc0f688 addresses #1097
do not set cardinality for clustering keys, because it is inaccurate

git-svn-id: file:///svn/mysql/tokudb-engine/src@11500 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
d38b8f6e31 addresses #1097
implement ha_tokudb::analyze

git-svn-id: file:///svn/mysql/tokudb-engine/src@11499 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
61810696bf addresses #1709
make rnd_pos always unpack entire row, implement column_bitmaps_signal()

git-svn-id: file:///svn/mysql/tokudb-engine/src@11491 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
f54c1956d8 addresses #1718
Yoni's CR comments

git-svn-id: file:///svn/mysql/tokudb-engine/src@11477 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
10f039cdec addresses #1719, #1718
add variable for checkpointing, address Yoni's CR comments

git-svn-id: file:///svn/mysql/tokudb-engine/src@11470 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:51 -04:00
Zardosht Kasheff
1ab3f2927c addresses #1661, #1718
fix both issues

git-svn-id: file:///svn/mysql/tokudb-engine/src@11469 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Rich Prohaska
80f9eac629 compile on linux with gcc
git-svn-id: file:///svn/mysql/tokudb-engine/src@11462 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
9eacbf75a2 addresses #1716
implement ha_tokudb::index_next_same because handler::index_next_same is broken

git-svn-id: file:///svn/mysql/tokudb-engine/src@11459 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
13d4ff497d addresses #1705
create separate buffer for blobs to be unpacked in, because MySQL only
stores a pointer to the data in its buffer

git-svn-id: file:///svn/mysql/tokudb-engine/src@11445 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
95b01027b4 addresses #1711
remove index_next_same for ha_tokudb, implementation in handler.cc is what
we want. This fixes the issue.

git-svn-id: file:///svn/mysql/tokudb-engine/src@11432 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
2cf364621f addresses #1699
set share->key_file[pk] = share->file before open so that it gets cleaned up
on failure

git-svn-id: file:///svn/mysql/tokudb-engine/src@11430 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
48a4528c62 addresses #1704
determine share->num_offset_bytes by only looking at size of var fields

git-svn-id: file:///svn/mysql/tokudb-engine/src@11429 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
b3e7e70b18 addresses #1698
flatten all dictionaries

git-svn-id: file:///svn/mysql/tokudb-engine/src@11426 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
e806a4fc3a addresses #1710
remove dead code

git-svn-id: file:///svn/mysql/tokudb-engine/src@11425 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
e594368ece addresses #1684
set buffer used in add_index to be table->record[0]
so that blobs can unpack to it.

git-svn-id: file:///svn/mysql/tokudb-engine/src@11423 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
47a39eda9d addresses #1711
get clustering keys working on updates

git-svn-id: file:///svn/mysql/tokudb-engine/src@11422 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
ced66cecf1 addresses #1705
isolate blob unpacking into a function

git-svn-id: file:///svn/mysql/tokudb-engine/src@11421 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00