Bradley C. Kuszmaul
8c4ffadd98
Quiet down the newbrt tests. Addresses #13 .
...
git-svn-id: file:///svn/tokudb@1333 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-22 23:12:40 +00:00
Rich Prohaska
9290db6fcc
unified the cursor search for cursor set, get_both, set_range, and get_both_range. still need to prune the search for some of these operations.
...
addresses #186
git-svn-id: file:///svn/tokudb@1149 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-17 01:03:35 +00:00
Rich Prohaska
8af05f08d6
set pma dupsort insert dup dup behaviour to replace. addresses #178
...
git-svn-id: file:///svn/tokudb@1132 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-14 13:18:47 +00:00
Rich Prohaska
8667527f2d
fix the test order. addresses #159
...
git-svn-id: file:///svn/tokudb@1124 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-13 22:25:24 +00:00
Rich Prohaska
8d098df137
cursor->del clears pivots if last match. closes #159
...
git-svn-id: file:///svn/tokudb@1114 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-13 14:53:18 +00:00
Bradley C. Kuszmaul
6a3b4d643b
Recompute the fingerprint for DBC->c_del(). Fixes #154 .
...
git-svn-id: file:///svn/tokudb@1017 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-07 22:27:52 +00:00
Rich Prohaska
d1a42e495b
fix DB_NEXT_DUP when the cursor points to a deleted kv pair. closes #121
...
git-svn-id: file:///svn/tokudb@950 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 00:32:44 +00:00
Bradley C. Kuszmaul
a542433295
Make some of the PMA fields be unsigned.
...
Remove some leading __ (double underbars) from some symbols. (Addresses #8.)
Improve the verification of node sizes (because recovery is having trouble with this. Addresses #27.)
git-svn-id: file:///svn/tokudb@944 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-05 19:41:39 +00:00
Bradley C. Kuszmaul
4fd00d7311
Log some pma movements. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@911 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-04 10:02:59 +00:00
Bradley C. Kuszmaul
22d8e86bc9
Fix the DBT problem for duplicate keys. Fixes #101 .
...
git-svn-id: file:///svn/tokudb@857 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 15:17:37 +00:00
Bradley C. Kuszmaul
0a6d3a6cc6
Rename a bunch of symbols to toku_symbols. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@826 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 15:34:49 +00:00
Bradley C. Kuszmaul
062ad802b1
Rename a bunch of symbols to toku_symbols. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@825 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 15:22:23 +00:00
Bradley C. Kuszmaul
77ab644ef6
Rename a bunch of symbols to toku_symbols. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@824 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 15:17:46 +00:00
Bradley C. Kuszmaul
1a155723d6
Add copyrights using #ident on the top of newbrt sources. Addresses #54 .
...
git-svn-id: file:///svn/tokudb@817 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 14:18:54 +00:00
Bradley C. Kuszmaul
9da9621873
Stop passing DB* everywhere. Instead store it in the BRT and PMA structs. Fixes #39 .
...
git-svn-id: file:///svn/tokudb@761 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 21:51:36 +00:00
Bradley C. Kuszmaul
fd2e07c904
Make all external symbols in pma.o start with toku_. Addresses #8
...
git-svn-id: file:///svn/tokudb@677 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-20 00:32:25 +00:00
Bradley C. Kuszmaul
252ec01833
Make all external symbols in key.o start with toku_. Addresses #8
...
git-svn-id: file:///svn/tokudb@676 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-20 00:02:51 +00:00
Rich Prohaska
caad214427
use TOKU_DB_DUPSORT internally
...
git-svn-id: file:///svn/tokudb@664 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-19 20:22:56 +00:00
Rich Prohaska
1620ec5815
remove app_private; merge in dup pma;
...
git-svn-id: file:///svn/tokudb@567 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-15 14:44:05 +00:00
Bradley C. Kuszmaul
48f0ad74b5
Up
...
git-svn-id: file:///svn/tokudb@519 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-14 17:58:38 +00:00
Rich Prohaska
c69bbcf7ff
pma uses a memory pool
...
git-svn-id: file:///svn/tokudb@436 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-10 19:33:31 +00:00
Bradley C. Kuszmaul
710cf343a3
Merge logging
...
git-svn-id: file:///svn/tokudb@371 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-28 17:11:22 +00:00
Rich Prohaska
4564dd3b9a
brt cursor get both feature
...
git-svn-id: file:///svn/tokudb@301 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-12 20:30:36 +00:00
Rich Prohaska
c71ab0c05c
fix the cursor first last deleted pair problem
...
git-svn-id: file:///svn/tokudb@288 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-11 14:53:21 +00:00
Rich Prohaska
7ac29707b1
cursor set key and set range
...
git-svn-id: file:///svn/tokudb@284 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-10 17:53:30 +00:00
Rich Prohaska
5bbddb61f5
change test name to already_there
...
git-svn-id: file:///svn/tokudb@280 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-07 13:34:17 +00:00
Bradley C. Kuszmaul
de47452c10
use the new db.h
...
git-svn-id: file:///svn/tokudb@276 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-06 20:13:56 +00:00
Rich Prohaska
87a0cffe5d
fix pma double delete and test pma double insert
...
git-svn-id: file:///svn/tokudb@272 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-06 17:29:45 +00:00
Rich Prohaska
808951d65d
pma delete under cursor changes
...
git-svn-id: file:///svn/tokudb@236 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-04 13:51:12 +00:00
Rich Prohaska
acd68baef4
implement the rebalance and shrink after pma deletion
...
git-svn-id: file:///svn/tokudb@220 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-30 15:15:14 +00:00
Rich Prohaska
cda74f7896
short cut pma_free
...
add some debug asserts to pma_free
git-svn-id: file:///svn/tokudb@147 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-16 13:10:29 +00:00
Bradley C. Kuszmaul
cc7a1e665c
Actually use maybe-faster-malloc
...
git-svn-id: file:///svn/tokudb@132 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-14 14:11:55 +00:00
Bradley C. Kuszmaul
ef0260e57c
insert_or_replace in one step
...
git-svn-id: file:///svn/tokudb@111 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 18:01:09 +00:00
Rich Prohaska
381c56c9f9
use pma split in the brt split leaf
...
git-svn-id: file:///svn/tokudb@103 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-09 18:54:58 +00:00
Bradley C. Kuszmaul
3bba4f46d9
Make a malloc that reuses things (if you tell it the size of the free'd thing)
...
git-svn-id: file:///svn/tokudb@94 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-07 23:38:05 +00:00
Rich Prohaska
e323d20acc
oops, run all of the pma tests
...
git-svn-id: file:///svn/tokudb@90 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-06 19:54:08 +00:00
Rich Prohaska
6a8eb4ed2a
update pma cursors whenever the kv pairs are moved in the pma index.
...
add pma_bulk_insert functionality.
git-svn-id: file:///svn/tokudb@89 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-06 19:43:27 +00:00
Rich Prohaska
e3c9ea0202
change the pma index from an array of pairs to an array of pointers
...
to the key and value. this change was made to address the slow
insert performance on an amd64 machine.
git-svn-id: file:///svn/tokudb@87 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-03 17:21:20 +00:00
Bradley C. Kuszmaul
14f557112f
Catch a test that happened to work
...
git-svn-id: file:///svn/tokudb@75 c7de825b-a66e-492c-adef-691d508d4ae1
2007-07-31 21:59:33 +00:00
Rich Prohaska
7896ccf789
change the name of internal functions
...
git-svn-id: file:///svn/tokudb@67 c7de825b-a66e-492c-adef-691d508d4ae1
2007-07-30 18:35:40 +00:00
Rich Prohaska
28ba0b259d
split a pma into 2, cursors on the pma not yet implemented
...
git-svn-id: file:///svn/tokudb@63 c7de825b-a66e-492c-adef-691d508d4ae1
2007-07-30 16:32:46 +00:00
Bradley C. Kuszmaul
0243ed5122
Fix up type conflicts with ydb.c
...
git-svn-id: file:///svn/tokudb@37 c7de825b-a66e-492c-adef-691d508d4ae1
2007-07-24 14:34:05 +00:00
Bradley C. Kuszmaul
62cfb06cc9
Things compile again after fiddling with the compare function. There's a malloc bug, however
...
git-svn-id: file:///svn/tokudb@32 c7de825b-a66e-492c-adef-691d508d4ae1
2007-07-24 01:32:03 +00:00
Bradley C. Kuszmaul
a52b758eb9
pma with compare fun works, and also uses DBTs for most interface work
...
git-svn-id: file:///svn/tokudb@31 c7de825b-a66e-492c-adef-691d508d4ae1
2007-07-23 20:10:16 +00:00
Bradley C. Kuszmaul
0a13028a99
More test cases
...
git-svn-id: file:///svn/tokudb@30 c7de825b-a66e-492c-adef-691d508d4ae1
2007-07-23 15:11:54 +00:00
Bradley C. Kuszmaul
762601f0d2
change my_malloc to toku_malloc. It all works
...
git-svn-id: file:///svn/tokudb@26 c7de825b-a66e-492c-adef-691d508d4ae1
2007-07-20 18:00:14 +00:00
Bradley C. Kuszmaul
8858b512a9
The pma-test runs
...
git-svn-id: file:///svn/tokudb@21 c7de825b-a66e-492c-adef-691d508d4ae1
2007-07-20 12:48:32 +00:00
Bradley C. Kuszmaul
bb3f65d84e
pma_cursor_next almost works
...
git-svn-id: file:///svn/tokudb@20 c7de825b-a66e-492c-adef-691d508d4ae1
2007-07-20 12:41:23 +00:00
Bradley C. Kuszmaul
2f8ec84fb8
Rename
...
git-svn-id: file:///svn/tokudb@4 c7de825b-a66e-492c-adef-691d508d4ae1
2007-07-13 19:37:47 +00:00