Zardosht Kasheff
70d1c13fe7
addresses #1569
...
remove tokudb_compare_two_hidden_keys from ::cmp_ref
git-svn-id: file:///svn/mysql/tokudb-engine/src@10981 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
29b0f1703e
addresses #1567 , #1569
...
fix row descriptor for clustering keys to not include infinity byte for
second key, add comparison functions
git-svn-id: file:///svn/mysql/tokudb-engine/src@10980 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
4c05646cd3
addresses #1567 , BUILD
...
remove TOKUDB_DIRTY_DICTIONARY references, as they have been removed
from db.h, add an infinity byte to row descriptor
git-svn-id: file:///svn/mysql/tokudb-engine/src@10965 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
7178bca522
addresses #1569
...
create function that compares two fields using data from a row descriptor
git-svn-id: file:///svn/mysql/tokudb-engine/src@10961 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
0f331fb4e2
addresses #1567
...
only put one byte fro fixbinary, max length is 255
git-svn-id: file:///svn/mysql/tokudb-engine/src@10960 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
f81a5dfa48
addresses #1567
...
change order of null byte and type byte in descriptor
add a null byte for hpk
git-svn-id: file:///svn/mysql/tokudb-engine/src@10959 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
462f475add
addresses #1567
...
fix creation of row descriptor and how it handles hidden primary keys
get it working properly for clustering keys
get it set before opening DB with DB_CREATE
git-svn-id: file:///svn/mysql/tokudb-engine/src@10956 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
8808572b2a
addresses #1567
...
write function to create a row descriptor
untested, just verified that it compiles
also currently unused
git-svn-id: file:///svn/mysql/tokudb-engine/src@10950 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
517edc19c3
closes #1642 , addresses #1569
...
remove unused .h file reference in ha_tokudb.cc
remove unused variables in free_share
git-svn-id: file:///svn/mysql/tokudb-engine/src@10949 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
24cbe785a2
addresses #1569
...
remove hatoku_cmptrace stuff that is no longer needed
git-svn-id: file:///svn/mysql/tokudb-engine/src@10946 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
13ae60ceba
addresses #1567
...
add null bit for fields in a key
git-svn-id: file:///svn/mysql/tokudb-engine/src@10944 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
b55f6ea179
addresses #1567
...
create function that outputs a descriptor for a key
git-svn-id: file:///svn/mysql/tokudb-engine/src@10933 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
0919ffffcb
addresses #1569
...
redo create_sub_table so that it can be more easily modified
all cosmetic
git-svn-id: file:///svn/mysql/tokudb-engine/src@10923 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
aa13d3f930
closes #1635
...
change table->key_info + keynr; to &table->key_info[keynr];
git-svn-id: file:///svn/mysql/tokudb-engine/src@10896 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
92ba873f7b
closes #1634
...
fix ticket
git-svn-id: file:///svn/mysql/tokudb-engine/src@10894 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
faa510946d
addresses #1619 , closes #1633
...
fix cmp_toku_string
fix 1633
git-svn-id: file:///svn/mysql/tokudb-engine/src@10891 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
221d4832d8
addresses #1619 , #1630
...
pattern match InnoDB for getting charset due to MySQL bug 42649
make integer pack and unpack faster
git-svn-id: file:///svn/mysql/tokudb-engine/src@10887 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
7e77e75436
addresses #1621
...
poison WORDS_BIGENDIAN
git-svn-id: file:///svn/mysql/tokudb-engine/src@10881 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
225daa2633
addresses #1619
...
rename compare_field to compare_toku_field
git-svn-id: file:///svn/mysql/tokudb-engine/src@10862 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
0592a43f04
addresses #1619
...
add comparison for floats
git-svn-id: file:///svn/mysql/tokudb-engine/src@10861 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
340a197125
addresses #1619
...
remove toku_type_decimal and toku_type_bitstream
They were unneeded.
git-svn-id: file:///svn/mysql/tokudb-engine/src@10859 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
cf499e3387
addresses #1619
...
remove all references to unpack_key, pack_key, and pack_key_from_key_image
git-svn-id: file:///svn/mysql/tokudb-engine/src@10857 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
d309bae980
addresses #1619
...
fix fixstring type
git-svn-id: file:///svn/mysql/tokudb-engine/src@10856 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
91e629b18e
addresses #1619
...
fix packing of varstrings, still need to fix the packing of fixstrings
git-svn-id: file:///svn/mysql/tokudb-engine/src@10854 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
d608b8ff0d
addresses #1619
...
better function names
git-svn-id: file:///svn/mysql/tokudb-engine/src@10842 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
316da67b65
addresses #1619
...
add support for blobs
git-svn-id: file:///svn/mysql/tokudb-engine/src@10833 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
5c6780dccf
addresses #1619
...
add support for varchars and varbinary
git-svn-id: file:///svn/mysql/tokudb-engine/src@10822 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
59aa4ee129
addresses #1619
...
add support for binary and fixed sized strings
git-svn-id: file:///svn/mysql/tokudb-engine/src@10816 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
9d27a70d55
addresses #1619
...
add support for sets and enums
git-svn-id: file:///svn/mysql/tokudb-engine/src@10776 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
d94478ad97
addresses #1619
...
silly bug for friday morning
git-svn-id: file:///svn/mysql/tokudb-engine/src@10775 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
d6c6a72467
addresses #1619
...
add support for bitstreams
git-svn-id: file:///svn/mysql/tokudb-engine/src@10769 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
d3c6d1f593
addresses #1619
...
add functions for decimals
git-svn-id: file:///svn/mysql/tokudb-engine/src@10768 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
fb54240e5f
addresses #1619
...
poison use of two MySQL types that are dead. These types are obsolete
in 5.1
git-svn-id: file:///svn/mysql/tokudb-engine/src@10755 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
34faae19fd
addresses #1619
...
add support for floats
git-svn-id: file:///svn/mysql/tokudb-engine/src@10751 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
9668529e35
addresses #1619
...
add support for doubles
make some of these functions inline
git-svn-id: file:///svn/mysql/tokudb-engine/src@10750 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
2adeb735ca
addresses #1619
...
silly bug
git-svn-id: file:///svn/mysql/tokudb-engine/src@10746 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
2abc2ed7ad
addresses #1619
...
create pack_key_field for ::index_read calls
git-svn-id: file:///svn/mysql/tokudb-engine/src@10745 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
3a460c118f
addresses #1619
...
remove extraneous printfs that were meant only for debugging
git-svn-id: file:///svn/mysql/tokudb-engine/src@10744 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
ae3c263a5d
addresses #1619
...
create unpack_field, integrate it into unpack_key
git-svn-id: file:///svn/mysql/tokudb-engine/src@10742 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:48 -04:00
Zardosht Kasheff
8104bb754d
addresses #1619
...
fix bug in cmp_toku_int
create pack_field and integrate it into create_dbt_key_from_key
git-svn-id: file:///svn/mysql/tokudb-engine/src@10741 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
5e02202048
addresses #1619
...
stupid stupid bug pt 2
git-svn-id: file:///svn/mysql/tokudb-engine/src@10736 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
6c90b41101
addresses #1619
...
get cmp function for ints working correctly
git-svn-id: file:///svn/mysql/tokudb-engine/src@10727 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
597d4f5565
addresses #1619
...
get cmp functions to use newly made integer comparison
git-svn-id: file:///svn/mysql/tokudb-engine/src@10726 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
9f7122b320
addresses #1619
...
check in some comparison code for integers. It is not running yet, that is the next step
git-svn-id: file:///svn/mysql/tokudb-engine/src@10725 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
89c6d9f7c2
addresses #1619
...
clean up pack and unpack functions a bit before adding more stuff to them
git-svn-id: file:///svn/mysql/tokudb-engine/src@10721 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
c3d8615df4
addresses #1619 , remove extraneous comment
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@10720 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
7e130e6ec3
addresses #1619
...
move cmp related functions to new files
git-svn-id: file:///svn/mysql/tokudb-engine/src@10719 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
587e51c59c
closes #1615
...
remove dead code
git-svn-id: file:///svn/mysql/tokudb-engine/src@10709 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
f09216e374
addresses #1613
...
stupid stupid bug.
git-svn-id: file:///svn/mysql/tokudb-engine/src@10704 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
ec9f77d7de
addresses #1614
...
fix ::get_pos for hidden primary keys
git-svn-id: file:///svn/mysql/tokudb-engine/src@10703 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
c5290d8cb7
addresses #1610
...
make rnd_pos, get_pos, position, and cmp_ref simpler by storing the DBT length at the beginning of the ref_length
git-svn-id: file:///svn/mysql/tokudb-engine/src@10677 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
f7e7267e87
addresses #1609
...
make ::cmp_ref use same comparison function as DBT's do
git-svn-id: file:///svn/mysql/tokudb-engine/src@10674 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
6ed7e5f581
addresses #1400
...
abstract the conversion functions of the hidden primary key
git-svn-id: file:///svn/mysql/tokudb-engine/src@10665 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
d68f2d6e43
addresses #1400
...
change size of hidden primary key from 5 bytes to 8
git-svn-id: file:///svn/mysql/tokudb-engine/src@10664 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
1c326deb1b
addresses #1593
...
after every 1000 inserts, check thd->killed to see if user has killed
the add index. If so, gracefully exit
git-svn-id: file:///svn/mysql/tokudb-engine/src@10551 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
9b6676e7ca
addresses #1405
...
show auto inc value on 'show create table'
git-svn-id: file:///svn/mysql/tokudb-engine/src@10023 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
e354241c14
addresses #1517
...
make buffer that prints status message in 'show processlist'
be a member variable instead of a local one
git-svn-id: file:///svn/mysql/tokudb-engine/src@10022 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
11a01f0209
addresses #1522
...
fix add_index so that one can add a clustering index to a table with a hidden primary key
git-svn-id: file:///svn/mysql/tokudb-engine/src@10017 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
22e2ae8b99
addresses #1504
...
add ability in Makefile to pass in a version string
git-svn-id: file:///svn/mysql/tokudb-engine/src@9953 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Yoni Fogel
01328f541d
Addresses #1504 Made CMakeLists.txt Phony.
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@9834 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Yoni Fogel
3bdfe0b7a7
Addresses #1504 Add ability to generate CMakeLists.txt
...
with appropriate include directories
make -f Makefile.win TOKUDB_DIR=c:/.../..
git-svn-id: file:///svn/mysql/tokudb-engine/src@9833 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Barry Perlman
6d51d65f42
Addresses #1378
...
Accommodate 1378 changes in handlerton.
git-svn-id: file:///svn/mysql/tokudb-engine/src@9536 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Rich Prohaska
ddc62b4c1e
build a single tokumysql .so. closes #1480
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@9502 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
29eff65ad1
addresses #1428
...
remove bad flag for cursor->c_del
git-svn-id: file:///svn/mysql/tokudb-engine/src@9221 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
d05997db35
UNDO dlmalloc changes. addresses #1377
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@9174 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
b67febba28
addresses #1396
...
write stuff to error log if fail to open file due to dirty bit
git-svn-id: file:///svn/mysql/tokudb-engine/src@9156 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
358dc2fbd7
addresses #1377
...
fixed a couple of free's to dlfree
git-svn-id: file:///svn/mysql/tokudb-engine/src@9152 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:47 -04:00
Zardosht Kasheff
3d4b4a7c19
addresses #1428
...
use DB_DELETE_ANY for deletes
git-svn-id: file:///svn/mysql/tokudb-engine/src@9148 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
c9795b4168
addresses #1396
...
change rmall so that it handles the fact that .clean or .dirty files exist
git-svn-id: file:///svn/mysql/tokudb-engine/src@9146 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
0f0e49422b
addresses #1283
...
fix windows compilation problems
git-svn-id: file:///svn/mysql/tokudb-engine/src@9104 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
e31166714d
addresses #1377
...
use dlmalloc in handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/src@9100 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
2f1ec58f50
addresses #1420
...
add DB_RECOVER flag
git-svn-id: file:///svn/mysql/tokudb-engine/src@9099 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
6451a316c8
addresses #1283
...
make it so that for MySQL, we can just check out a directory and have tokudb
compiled in
git-svn-id: file:///svn/mysql/tokudb-engine/src@9093 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
86288646e5
addresses #1418
...
show progress after every 1000 deletes, inserts, or updates
git-svn-id: file:///svn/mysql/tokudb-engine/src@9068 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
25d3c5c725
addresses #1404
...
modify state field of show process list so that user gets info on progress of index creation
git-svn-id: file:///svn/mysql/tokudb-engine/src@8976 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
fdeaacbbce
addresses #1395
...
pass in PRELOCKED flag for index_read
git-svn-id: file:///svn/mysql/tokudb-engine/src@8931 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
e90751dbd8
addresses #1391
...
make the transaction that estimates the number of rows be a
DB_READ_UNCOMMITTED transaction
git-svn-id: file:///svn/mysql/tokudb-engine/src@8810 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
6801f9fe55
addresses #1392
...
enable binary logging for tokudb. Work is not done yet, need
to do investigation to make sure that there are no unwanted side effects.
git-svn-id: file:///svn/mysql/tokudb-engine/src@8809 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Rich Prohaska
c9be4ccf1a
change the default cache table size. closes #1387
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@8749 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Yoni Fogel
1f0693762e
Addresses #1311
...
Fix paths for headers
git-svn-id: file:///svn/mysql/tokudb-engine/src@8711 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
dbc66e3c47
addresses #1380
...
fix issue
git-svn-id: file:///svn/mysql/tokudb-engine/src@8700 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
aa87d54ba9
addresses #1032
...
merge handlerton to main line
git-svn-id: file:///svn/mysql/tokudb-engine/src@8627 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
5e66f5c523
addresses #1326
...
no longer read off end
git-svn-id: file:///svn/mysql/tokudb-engine/src@8320 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
388b5b2ed0
addresses #1314
...
fix memory overrun
git-svn-id: file:///svn/mysql/tokudb-engine/src@8315 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
3d42aff888
addresses #1310
...
set freed pointers to NULL
git-svn-id: file:///svn/mysql/tokudb-engine/src@8260 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
92c148859c
addresses #1286
...
port fix to main line
git-svn-id: file:///svn/mysql/tokudb-engine/src@8025 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
eb00e4d1b6
addresses #1265
...
had if clauses backwards
git-svn-id: file:///svn/mysql/tokudb-engine/src@8022 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
b588cbba9d
addresses #1285
...
check in fix in main line
git-svn-id: file:///svn/mysql/tokudb-engine/src@8014 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
253b69fff0
addresses #1032
...
stop using variable sized arrays off of stack on main line
git-svn-id: file:///svn/mysql/tokudb-engine/src@7991 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
3e6933d916
addresses #1282
...
initialize variables
git-svn-id: file:///svn/mysql/tokudb-engine/src@7990 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
c47a065915
addresses #1149
...
move partial refactoring to main line
git-svn-id: file:///svn/mysql/tokudb-engine/src@7989 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Rich Prohaska
2c1a8c8285
compile the handlerton with -O3 and inline the field_offset function
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@7925 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
97fd2a01f0
addresses #1032
...
undo last checkin done in wrong branch
git-svn-id: file:///svn/mysql/tokudb-engine/src@7733 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
2b319e27aa
addresses #1032
...
re-port latest handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/src@7732 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:46 -04:00
Zardosht Kasheff
42d3404b91
addresses #1219
...
fix memory leak
git-svn-id: file:///svn/mysql/tokudb-engine/src@7608 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
7f313e1222
addresses #1219
...
fix regressions
git-svn-id: file:///svn/mysql/tokudb-engine/src@7606 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
b7ebdb3622
addresses #1219
...
move clustering keys to main line
git-svn-id: file:///svn/mysql/tokudb-engine/src@7591 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
3569ec4457
addresses #1218
...
fix buffer lengths for file names
git-svn-id: file:///svn/mysql/tokudb-engine/src@6934 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
5b35f75394
addresses #1178
...
made table locks occur only when explicit lock tables is done
git-svn-id: file:///svn/mysql/tokudb-engine/src@6910 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
a376a28e24
addresses #1032
...
pad a struct to shut MSVC compiler up
git-svn-id: file:///svn/mysql/tokudb-engine/src@6795 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
4d5ca39c86
addresses #1032
...
port ha_tokudb::open to windows
git-svn-id: file:///svn/mysql/tokudb-engine/src@6794 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
f2105317a9
addresses #1032
...
fix add_index and prepare_drop_index for windows
git-svn-id: file:///svn/mysql/tokudb-engine/src@6792 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
6d3336f1b4
addresses #1032
...
fix ha_tokudb::create for windows
git-svn-id: file:///svn/mysql/tokudb-engine/src@6790 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
14fdc85f06
addresses #1032
...
get rid of some variable sized arrays off of stack, still have bunch more to go
git-svn-id: file:///svn/mysql/tokudb-engine/src@6787 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
1575a21086
addresses #1210
...
show auto inc value in show table status
git-svn-id: file:///svn/mysql/tokudb-engine/src@6739 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
25f6fba41f
addresses #1213
...
fix compiler warnings
git-svn-id: file:///svn/mysql/tokudb-engine/src@6737 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
7903feb1d6
addresses #1201
...
implement the isolation level read uncommitted in handlerton, has been
manually tested. Still need to write automated tests.
git-svn-id: file:///svn/mysql/tokudb-engine/src@6645 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
14126cf746
addresses #647
...
implement HA_READ_PREFIX_LAST
git-svn-id: file:///svn/mysql/tokudb-engine/src@6620 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
97b1329816
addresses #1171
...
fix length of buffer for primary_key
git-svn-id: file:///svn/mysql/tokudb-engine/src@6252 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
fe2ff2a12a
addresses #1163
...
change retrieve_auto_increment to be different than MyISAM's function
git-svn-id: file:///svn/mysql/tokudb-engine/src@6208 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
da37b82a97
addresses #1163
...
make better name for function
git-svn-id: file:///svn/mysql/tokudb-engine/src@6190 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
39c899f30f
addresses #1158
...
fix cmp_ref
git-svn-id: file:///svn/mysql/tokudb-engine/src@6187 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
687aea89a9
addresses #1158
...
most regressions fixed now, 2 more remaining it seems
git-svn-id: file:///svn/mysql/tokudb-engine/src@6182 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
5e6f12f9f3
addresses #1158
...
fix regressions
git-svn-id: file:///svn/mysql/tokudb-engine/src@6178 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
d9a2d70f2d
addresses #1165 , #1158
...
no longer pack NULL in variable sized rows in main.tokudb, remove usage of 0 as 'NULL BYTE' in packed keys
git-svn-id: file:///svn/mysql/tokudb-engine/src@6163 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
54587c20fc
addresses #1158
...
add 'infinity byte' to beginning of keys
git-svn-id: file:///svn/mysql/tokudb-engine/src@6162 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
d601c582fe
addresses #1152
...
no longer reference key_part->null_offset because add_index does not
set the value
git-svn-id: file:///svn/mysql/tokudb-engine/src@6126 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
ff21bf00cf
addresses #1151
...
make ha_tokudb change for bug
git-svn-id: file:///svn/mysql/tokudb-engine/src@6113 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
840d7774bb
addresses #1149
...
move some defines out of ha_tokudb.cc and into new file hatoku_defines.h
git-svn-id: file:///svn/mysql/tokudb-engine/src@6077 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
97f437f75d
addresses #1105
...
fix records_in_range to be able to handle a prefix that is passed in
git-svn-id: file:///svn/mysql/tokudb-engine/src@6073 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
903bfbe3b2
addresses #1116
...
remove unused constants
git-svn-id: file:///svn/mysql/tokudb-engine/src@6026 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:45 -04:00
Zardosht Kasheff
f346e1a636
addresses #1116
...
change makefile so that multiple .cc files can be used
git-svn-id: file:///svn/mysql/tokudb-engine/src@6024 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
be203841a0
addresses #387
...
use db->delboth to do delete
git-svn-id: file:///svn/mysql/tokudb-engine/src@5883 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
b63611ccc0
addresses #1111
...
change flag of 0 to DB_YESOVERWRITE so that it is explicit
git-svn-id: file:///svn/mysql/tokudb-engine/src@5868 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
ced0f7606d
addresses #1016
...
get MySQL to realize that alter table change requires making a new table
git-svn-id: file:///svn/mysql/tokudb-engine/src@5735 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
dca967909e
fix memory leaks
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@5727 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
9d4d6b5b6e
addresses #915
...
simplify ::create
git-svn-id: file:///svn/mysql/tokudb-engine/src@5726 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
9d86ad0a64
addresses #915
...
merge auto increment fix into main branch
git-svn-id: file:///svn/mysql/tokudb-engine/src@5725 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
a1b7692cae
addreses #1094
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@5650 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
177f7b9a67
addresses #1087
...
make sure ::optimize uses valid transaction
git-svn-id: file:///svn/mysql/tokudb-engine/src@5648 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
c86dc3f490
addresses #1078
...
small changes to get savepoint code to compile
git-svn-id: file:///svn/mysql/tokudb-engine/src@5647 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
728227237a
addresses #1088
...
fix null keys in case for updates
git-svn-id: file:///svn/mysql/tokudb-engine/src@5632 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
39634ae96d
addresses #1068
...
use right transaction param
git-svn-id: file:///svn/mysql/tokudb-engine/src@5612 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
a5ffdc7ca9
addresses #1068
...
for function optimize tables, does a full table scan on each key to flatten DB
git-svn-id: file:///svn/mysql/tokudb-engine/src@5611 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
f9850e0fde
addresses #1084
...
implement HA_EXTRA_IGNORE_DUP_KEY correctly
git-svn-id: file:///svn/mysql/tokudb-engine/src@5592 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
060d2d73b4
addresses #1058
...
get ha_tokudb to properly support keys with NULL values in unique indexes
still need to write an automated test
git-svn-id: file:///svn/mysql/tokudb-engine/src@5589 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
c38e0d7800
addresses #1069 #1077
...
merge into main line for 1.0.7
git-svn-id: file:///svn/mysql/tokudb-engine/src@5567 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
69b3d73aad
addresses #1066
...
remove overactive assert
git-svn-id: file:///svn/mysql/tokudb-engine/src@5476 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
5c938aae5f
addresses #1047
...
fix bad merge
git-svn-id: file:///svn/mysql/tokudb-engine/src@5448 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
9c9c5f985f
addresses #1047 #1056
...
use smart DBT's for add_index and ha_tokudb cursor operations
git-svn-id: file:///svn/mysql/tokudb-engine/src@5433 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
52abaa223d
addresses #1057
...
add DB_PRELOCKED flag where applicable in add_index
git-svn-id: file:///svn/mysql/tokudb-engine/src@5410 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Rich Prohaska
512c3e5c3c
simplify the delete_all_rows. addresses #969
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@5237 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Rich Prohaska
d08a579059
implement delete_all_rows. closes #969
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@5232 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Yoni Fogel
d3de732f61
Addresses #993
...
Removed duplicated temp file
git-svn-id: file:///svn/mysql/tokudb-engine/src@5187 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
2bcd7bf091
addresses #993
...
use heaviside function for index_read
git-svn-id: file:///svn/mysql/tokudb-engine/src@5164 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Yoni Fogel
3c5cc701f3
Addresses #993
...
Cleanup
git-svn-id: file:///svn/mysql/tokudb-engine/src@5160 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
6313f1f675
Addressed #993
...
Removed unused variables.
git-svn-id: file:///svn/mysql/tokudb-engine/src@5158 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
1915677d7a
Addresses #993
...
Removed debug verification for heaviside functions
git-svn-id: file:///svn/mysql/tokudb-engine/src@5157 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Zardosht Kasheff
798179fd10
Addresses #993
...
Fix bug in assertion
git-svn-id: file:///svn/mysql/tokudb-engine/src@5156 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:44 -04:00
Yoni Fogel
5884ae2d70
Addresses #993
...
Renamed file
git-svn-id: file:///svn/mysql/tokudb-engine/src@5155 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Yoni Fogel
fb90472a5c
Addresses #993
...
Bugfix in comparison in heaviside funcs
git-svn-id: file:///svn/mysql/tokudb-engine/src@5154 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Yoni Fogel
0cd1ab4ed4
Addresses #993
...
Added verification checks
git-svn-id: file:///svn/mysql/tokudb-engine/src@5153 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Yoni Fogel
4239e6179e
Addresses #993
...
Add heaviside function (c_getf_heavi) use to handlerton.
git-svn-id: file:///svn/mysql/tokudb-engine/src@5150 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
887e51dc95
addresses #1022
...
forgot to close cursor
git-svn-id: file:///svn/mysql/tokudb-engine/src@5108 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
e460e8c991
addresses #973
...
reintroduce change that saves memcpy when primary key is covering index,
will add note to release notes stating not to have prefix as part of primary key
git-svn-id: file:///svn/mysql/tokudb-engine/src@5068 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
c5f1fb75f4
addresses #1013
...
make sure tokudb does not support geometry, per PRD
git-svn-id: file:///svn/mysql/tokudb-engine/src@5024 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
23fb4b4628
addresses #977
...
remove hack to get decimals working
git-svn-id: file:///svn/mysql/tokudb-engine/src@4988 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
15e8649e50
addresses #1001
...
reduce number of key_range64 calls
git-svn-id: file:///svn/mysql/tokudb-engine/src@4969 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
f5f6715103
addresses #814
...
readd lock around f'n
git-svn-id: file:///svn/mysql/tokudb-engine/src@4942 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
61612cdcf3
addresses #814
...
undo bad change, not sure why it is bad, but it is
git-svn-id: file:///svn/mysql/tokudb-engine/src@4941 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
43d0540e71
addresses #814
...
remove leak of status_block
git-svn-id: file:///svn/mysql/tokudb-engine/src@4940 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
3ef8c9d2cb
addresses #814
...
some function cleanup
git-svn-id: file:///svn/mysql/tokudb-engine/src@4932 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
5bde893355
addresses #814
...
little bit of cleaning up
git-svn-id: file:///svn/mysql/tokudb-engine/src@4931 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
8cd2f2b5cd
addresses #814
...
put in real capabilities value
git-svn-id: file:///svn/mysql/tokudb-engine/src@4930 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
cf3a9de692
addresses #814
...
add version and capabilities, some cleanup still required, but code works
git-svn-id: file:///svn/mysql/tokudb-engine/src@4929 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
0af29e918b
addresses #814
...
restructure code before adding version and capabilities
git-svn-id: file:///svn/mysql/tokudb-engine/src@4928 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
914273aa6a
addresses #814
...
curly braces around if clause
git-svn-id: file:///svn/mysql/tokudb-engine/src@4927 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
8b5e9a44bc
addresses #814
...
remove update_status, at moment, there is nothing that needs updating when
DB is going away
git-svn-id: file:///svn/mysql/tokudb-engine/src@4926 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
2cfc80d4aa
addresses #814
...
remove extraneous variable
git-svn-id: file:///svn/mysql/tokudb-engine/src@4925 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
01008c5abd
addresses #852
...
renumber flags after a couple were deleted
git-svn-id: file:///svn/mysql/tokudb-engine/src@4924 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
d39ec884d6
addresses #852
...
remove extraneous flags that were lying around
git-svn-id: file:///svn/mysql/tokudb-engine/src@4923 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
4fd737063d
addresses #852
...
remove function write_status, no longer being used
git-svn-id: file:///svn/mysql/tokudb-engine/src@4921 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
63c0be36e5
addresses #852
...
as of now, no info is stored in status.tokudb because the old info
that was stored is not needed anymore. Info will be stored soon.
git-svn-id: file:///svn/mysql/tokudb-engine/src@4920 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
2251847caf
addresses 967
...
remove unused variables share->rows and share->org_rows that were useed
to estimate row count. row count is now estimated with key_range64
git-svn-id: file:///svn/mysql/tokudb-engine/src@4919 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
eb23b1f6c5
addresses #967
...
make row count displayed in show table status better by
using key_range64 to estimate stats.records instead of keeping a running tally
git-svn-id: file:///svn/mysql/tokudb-engine/src@4918 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
6d229ca2d5
addresses #977
...
temporary change to test if just doing a memcpy will work for unpacking
a Field_new_decimal
real change is to modify Field_new_decimal, but by checking this in, we can
quickly get regression results
git-svn-id: file:///svn/mysql/tokudb-engine/src@4904 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
2929a3c472
addresses 977
...
previous fix was bad, undid it
git-svn-id: file:///svn/mysql/tokudb-engine/src@4880 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:43 -04:00
Zardosht Kasheff
5ebd148d08
addresses #977
...
get decimals working properly in tokudb
git-svn-id: file:///svn/mysql/tokudb-engine/src@4828 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
790800429a
addresses 612
...
change max number of keys to be 64
git-svn-id: file:///svn/mysql/tokudb-engine/src@4796 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
9090a45745
addresses 958
...
fix file descriptor leak that happens on add_index
git-svn-id: file:///svn/mysql/tokudb-engine/src@4795 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
9b4c56fd78
addresses 962
...
grab table locks when doing a scan of a secondary index
git-svn-id: file:///svn/mysql/tokudb-engine/src@4792 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
b75787e10b
addresses #973
...
just unpacking key has problems when the key is a substring of a column. MySQL still reports that it is a covering index, must back out previous change
git-svn-id: file:///svn/mysql/tokudb-engine/src@4782 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
ea35126a84
addresses 973
...
dont unpack entire row when primary key is used as covering index
git-svn-id: file:///svn/mysql/tokudb-engine/src@4770 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
661e8854f8
addresses #922
...
fix overactive assert
git-svn-id: file:///svn/mysql/tokudb-engine/src@4767 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
4d300a2348
addresses 922
...
when locking table, grab table locks
git-svn-id: file:///svn/mysql/tokudb-engine/src@4764 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
6f84151a7a
addresses #922
...
readd useful comment that went away with last checkin
git-svn-id: file:///svn/mysql/tokudb-engine/src@4753 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
0985fbb3d1
addresses #922
...
cosmetic change, make external_lock have only one return pt
git-svn-id: file:///svn/mysql/tokudb-engine/src@4751 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
4fa1d520e9
addresses #922
...
make external_lock more readable
git-svn-id: file:///svn/mysql/tokudb-engine/src@4750 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
84b982ba2a
addresses #922
...
back out change for 4591, need more testing before it can go in
reopening ticket
git-svn-id: file:///svn/mysql/tokudb-engine/src@4634 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
37d2b97c8a
addresses #930
...
fix buffer overwrite error. Bug has been around, but just recently exposed
by checkin 4590
git-svn-id: file:///svn/mysql/tokudb-engine/src@4616 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
c5cf855e68
addresses #895
...
implement read_time to take into account that the primary_key is clustered
git-svn-id: file:///svn/mysql/tokudb-engine/src@4595 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
62deaba0d2
addresses #922
...
pre_acquire table locks from lock tree when mysql is doing a lock table
git-svn-id: file:///svn/mysql/tokudb-engine/src@4591 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
8b112ba2d4
addresses #924
...
add_index now correctly computes number of existing DB files
git-svn-id: file:///svn/mysql/tokudb-engine/src@4590 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
8e1bc4e999
addresses #922
...
rename lock_grabbed to range_lock_grabbed to help distinguish from
cases where table lock is grabbed
git-svn-id: file:///svn/mysql/tokudb-engine/src@4589 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
35ddbcb694
addresses #909
...
fix index_prev in case we don't have lock
it was a typo before
git-svn-id: file:///svn/mysql/tokudb-engine/src@4516 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Rich Prohaska
ed2fdd2f44
get the left outer join test in the sql-bench/insert working. addresses #838
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@4515 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
3d40779336
addresses #913
...
grab locks in add_index to reduce lock tree overhead
git-svn-id: file:///svn/mysql/tokudb-engine/src@4499 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
b453499ae7
addresses #909
...
use DB_PRELOCK when we know we have lock acquired
git-svn-id: file:///svn/mysql/tokudb-engine/src@4481 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
890ee02626
addresses #873
...
no need to disable shortcut sorts with blobs
git-svn-id: file:///svn/mysql/tokudb-engine/src@4461 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
92022f03dd
addresses #901
...
make handlerton not use a cursor that has had a failed operation
this will be useful for lightweight cursors
git-svn-id: file:///svn/mysql/tokudb-engine/src@4455 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
a939fc8b6a
addresses #901
...
slightly restructure some functions to allow handling of lighter weight cursors
git-svn-id: file:///svn/mysql/tokudb-engine/src@4439 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
0be188db17
addresses #893
...
implement read_range_first to grab range read lock
git-svn-id: file:///svn/mysql/tokudb-engine/src@4405 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
3d417ee569
addresses #893
...
make table scans grab an entire read lock from the beginning
git-svn-id: file:///svn/mysql/tokudb-engine/src@4404 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
9732f7f32a
addresses #873
...
used to disable covering indexes for some keys with strings for wrong reasons
not anymore
git-svn-id: file:///svn/mysql/tokudb-engine/src@4386 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Zardosht Kasheff
ec046740e4
addresses #893
...
add instances of read_range_first and read_range_next in ha_tokudb
currently just call parent class version
git-svn-id: file:///svn/mysql/tokudb-engine/src@4385 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:42 -04:00
Rich Prohaska
6a02056db4
get the sql command that is being processed when the external_lock function is called
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@4353 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
e8f46df530
addresses #883
...
make add_index faster by making inserts into secondary table all be part
of on transaction
git-svn-id: file:///svn/mysql/tokudb-engine/src@4287 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
29e0cf4812
addresses #843
...
merge back into main branch
git-svn-id: file:///svn/mysql/tokudb-engine/src@4264 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
382402e728
addresses #861
...
now DB's are removed with db->remove and unlink
git-svn-id: file:///svn/mysql/tokudb-engine/src@4252 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
413d9c2195
addresses #874
...
check to see if keys that are added have same name as existing keys.
if so, gracefully return error
git-svn-id: file:///svn/mysql/tokudb-engine/src@4250 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
320be7d69f
addresses #863
...
get proper error msg returned
git-svn-id: file:///svn/mysql/tokudb-engine/src@4224 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Rich Prohaska
3962b4c599
change the default cache table size to 1/2 of physical memory and add a sysvar that allows one to change the default percentage. closes #876
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@4218 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
d64f437c88
addresses #846
...
tmp_key_buff was not big enough
git-svn-id: file:///svn/mysql/tokudb-engine/src@4200 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
9be6de8e68
addresses #846
...
table->s->max_key_length does not take into account new keys that are being added, and therefore is not suitable as a buffer size
git-svn-id: file:///svn/mysql/tokudb-engine/src@4167 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
dea9281ad5
addresses #846
...
not accessing ANOTHER null_bit correctly
git-svn-id: file:///svn/mysql/tokudb-engine/src@4165 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
2e3a952062
addresses #846
...
not accessing null_bit correctly
git-svn-id: file:///svn/mysql/tokudb-engine/src@4164 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
d75d64907a
addresses #846
...
merge back into main branch
git-svn-id: file:///svn/mysql/tokudb-engine/src@4138 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Rich Prohaska
5924dbb1b4
control tokudb logging with the DB_INIT_LOG flag. closes #807
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@4019 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
a77902c5e6
addresses #830
...
comment out DB_DBT_DUPOK usage, which fractal tree
does not understand at the moment
git-svn-id: file:///svn/mysql/tokudb-engine/src@3956 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
05a60c31f0
addresses #772
...
with DB->key_range64 implemented, enable records_in_range
git-svn-id: file:///svn/mysql/tokudb-engine/src@3952 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
be974a2363
addresses #828
...
replace bad NULL param with what the param should actually be
git-svn-id: file:///svn/mysql/tokudb-engine/src@3951 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
0aa99acbde
addresses #822
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3939 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
73d7c19e8c
addresses #808
...
reduce complexity of pack_row and make it independent of whether
we have a hidden primary key
git-svn-id: file:///svn/mysql/tokudb-engine/src@3920 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
369670902e
addresses #808
...
no longer append hidden primary key at end of data inserted in tokudb table
git-svn-id: file:///svn/mysql/tokudb-engine/src@3900 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
8125c7c2af
addresses #686
...
remove extraneous parameter in remove_keys
git-svn-id: file:///svn/mysql/tokudb-engine/src@3862 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
f97b5a7df0
addresses #686
...
add comments for create_key, pack_key, remove_keys, remove_key
git-svn-id: file:///svn/mysql/tokudb-engine/src@3860 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
02b7ae99f3
addresses #772
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3818 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
3144ecd8bd
addresses #765
...
add tracing to more functions to get better idea of how MySQL makes calls
into handlerton
git-svn-id: file:///svn/mysql/tokudb-engine/src@3801 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
a90e19a8e1
addresses #732
...
make error handling of index_read and index_last consistent with
MyISAM and InnoDB
git-svn-id: file:///svn/mysql/tokudb-engine/src@3800 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Rich Prohaska
b6ca0c98c9
port to mysql 5.1.24-rc. addresses #776
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3766 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
a3474c1bde
addresses #686
...
remove some comments about position() and rnd_pos() that may have been
inaccurate. Will put in comments once functions are better understood
git-svn-id: file:///svn/mysql/tokudb-engine/src@3650 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
33af62c16f
addresses #686
...
add comments to understand how rnd_pos and position relate to each other
and how they work
git-svn-id: file:///svn/mysql/tokudb-engine/src@3638 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Zardosht Kasheff
cecacda7d2
addresses #686
...
comments for pack_row and unpack_key
git-svn-id: file:///svn/mysql/tokudb-engine/src@3634 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:41 -04:00
Rich Prohaska
e097db97af
trace the ha_tokudb::rename method. closes #745
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3631 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Zardosht Kasheff
d761a002f6
closes #744
...
should do bzero on byte_stream instead of &byte_stream
only affected in a certain trace mode
git-svn-id: file:///svn/mysql/tokudb-engine/src@3628 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Rich Prohaska
1309643b90
turn recovery off for the 1.0.1 release. closes #742
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3624 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Rich Prohaska
9d4af785cc
change the auto_increment field filter to only allow the first field in the primary key or the first field in the row if there is no primary key. closes #738
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3596 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Rich Prohaska
584d43ab30
print a usage message for any unknown parameters (which are probably typos). closes #737
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3588 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Rich Prohaska
066a02e99c
fix the crash.sql problem when transactions are turned off. closes #734
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3568 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Rich Prohaska
b8c6f4bf48
get covering index reads to work by supplying the key from the index to the read row function. addresses #705
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3559 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Zardosht Kasheff
213ba27532
addresses #686
...
add comments for read_row
git-svn-id: file:///svn/mysql/tokudb-engine/src@3543 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Zardosht Kasheff
3c671f37a1
addresses #686
...
add comments for several member variables
git-svn-id: file:///svn/mysql/tokudb-engine/src@3535 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Rich Prohaska
70c7d6cdb5
allow one to set the version. closes #727
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3534 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Rich Prohaska
01921df6ca
more changes to get the storage engine working without transactions. addresses #460
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3526 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Rich Prohaska
a7d40ecb7d
allow one to turn transactions, locking, or logging off in the tokudb storage engine for experiments. addresses #460
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3512 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Zardosht Kasheff
1c69b497bc
addresses #686
...
add comments to most member variables in ha_tokudb.cc
change initialization of cursor and transaction pointers to NULL instead of 0
git-svn-id: file:///svn/mysql/tokudb-engine/src@3510 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Rich Prohaska
502187f0af
just add a checkpoint to the log when the handlerton is shutdown. closes #702
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3509 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Rich Prohaska
f80264c2b5
turn on DB_RECOVER in the env->open call. closes #652
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3508 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Zardosht Kasheff
41b94672bd
addresses #686
...
put comments above public function declaring what their behavior, parameters
and possible return values
git-svn-id: file:///svn/mysql/tokudb-engine/src@3500 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00
Rich Prohaska
f50ca6bed4
fix the ATIS test SELECT failure by adding a dup compare function for the primary key. closes #637
...
git-svn-id: file:///svn/mysql/tokudb-engine/src@3491 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:40 -04:00