Commit graph

460 commits

Author SHA1 Message Date
Zardosht Kasheff
edcbad5d5b 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
65de391142 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
3e3738d9be 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
e4db484a1c 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
ab2db27e59 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
77911527dc 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
96e7913d68 addresses BUILD
stupid build error on linux, was passing windows

git-svn-id: file:///svn/mysql/tokudb-engine/src@11431 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
3cf73bb8cb 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
529538257a 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
95c3cadfab 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
cde437db90 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
02df9f403b 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
88523ecd3f 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
840087c431 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
Zardosht Kasheff
3871a93a07 addresses #1116
reset variables in index_end

git-svn-id: file:///svn/mysql/tokudb-engine/src@11412 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
647a01c537 addresses #1116 #1658
merge to main

git-svn-id: file:///svn/mysql/tokudb-engine/src@11407 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Rich Prohaska
382639fa22 remove the stdc++ lib reference in the tokumysql handlerton. closes #1708
git-svn-id: file:///svn/mysql/tokudb-engine/src@11402 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Rich Prohaska
02f09b84d1 remove an unused var
git-svn-id: file:///svn/mysql/tokudb-engine/src@11401 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Rich Prohaska
c2f4870738 turn off lockretry tracing. closes #1688
git-svn-id: file:///svn/mysql/tokudb-engine/src@11356 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Rich Prohaska
b9e37ece1c link in the library constructors. closes #1685
git-svn-id: file:///svn/mysql/tokudb-engine/src@11284 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
255c8e2214 address BUILD
get build working

git-svn-id: file:///svn/mysql/tokudb-engine/src@11257 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
9d1f62c80e addresses build
get handlerton compiling again

git-svn-id: file:///svn/mysql/tokudb-engine/src@11212 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
5ca27b565f blah
git-svn-id: file:///svn/mysql/tokudb-engine/src@11211 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
60bda4b670 addresses #1654
merge change for this bug into main

git-svn-id: file:///svn/mysql/tokudb-engine/src@11188 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
e7f33e8894 addresses #1663
double a buffer size

git-svn-id: file:///svn/mysql/tokudb-engine/src@11172 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
331592c7c1 addresses #1602
merge change to main

git-svn-id: file:///svn/mysql/tokudb-engine/src@11160 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
8cde966580 addresses #1662
merge necessary changes from 11131 into main

git-svn-id: file:///svn/mysql/tokudb-engine/src@11136 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
965a235372 addresses #1655
add more comments

git-svn-id: file:///svn/mysql/tokudb-engine/src@11098 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:50 -04:00
Zardosht Kasheff
5f635d39f8 addresses #1655
cosmetic changes, change formatting

git-svn-id: file:///svn/mysql/tokudb-engine/src@11088 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
34cc5ed9c6 addresses #1655
rename some more functions, remove extraneous commented out code

git-svn-id: file:///svn/mysql/tokudb-engine/src@11087 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
3ecc537889 addresses #1655 remove extra semicolon
git-svn-id: file:///svn/mysql/tokudb-engine/src@11085 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
34afae667e addresses #1656
fix bug

git-svn-id: file:///svn/mysql/tokudb-engine/src@11084 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
4a3e3ff3f5 addresses #1655
add comments, rename some functions

git-svn-id: file:///svn/mysql/tokudb-engine/src@11083 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
b15baf3817 addresses #1655
move more functions around, more cosmetic

git-svn-id: file:///svn/mysql/tokudb-engine/src@11080 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
812ad19231 addresses #1655
move more functions around, all cosmetic

git-svn-id: file:///svn/mysql/tokudb-engine/src@11079 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
c01ff9cfb6 addresses #1655
move functions around

git-svn-id: file:///svn/mysql/tokudb-engine/src@11076 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
3acb1d7987 addresses #1653
remove unused app_private and api_internal settings

git-svn-id: file:///svn/mysql/tokudb-engine/src@11072 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
182b05f37d addresses #1648
fix unpack of blob key

git-svn-id: file:///svn/mysql/tokudb-engine/src@11054 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
f8b405c503 addresses #1648
change function name

git-svn-id: file:///svn/mysql/tokudb-engine/src@11050 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
1b60193290 addresses #1648
make packing of blob indexes work

git-svn-id: file:///svn/mysql/tokudb-engine/src@11049 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
b59b1763d8 addresses #1567
reintroduce new comparison function, mysql tests ran fine

git-svn-id: file:///svn/mysql/tokudb-engine/src@11029 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
27f62286fa addresses #1567
recheckin change that allocates enough space for a buffer

git-svn-id: file:///svn/mysql/tokudb-engine/src@11011 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
7d940ea5b4 addresses #1567
revert new cmp function until you can get it working

git-svn-id: file:///svn/mysql/tokudb-engine/src@11010 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
9827676b0a addresses #1569
old buffer too small, made it bigger

git-svn-id: file:///svn/mysql/tokudb-engine/src@10995 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
8cc0e336d6 addresses #1569
fix NULLs in keys

git-svn-id: file:///svn/mysql/tokudb-engine/src@10989 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
a0cc9e9b9a addresses #1569, remove tab, add 4 spaces, cosmetic change
git-svn-id: file:///svn/mysql/tokudb-engine/src@10987 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
49d3cfb86c addresses #1569
fix stupid bug

git-svn-id: file:///svn/mysql/tokudb-engine/src@10985 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
Zardosht Kasheff
de8b71eeca addresses #1569
fix gcc build issue

git-svn-id: file:///svn/mysql/tokudb-engine/src@10982 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:49 -04:00
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