Bradley C. Kuszmaul
d1569489ca
Get rid of childkeylens. Addresses #126 .
...
git-svn-id: file:///svn/tokudb@964 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 14:30:33 +00:00
Bradley C. Kuszmaul
814b68e843
Get rid of another case where childkeylens are used. Addresses #126 .
...
git-svn-id: file:///svn/tokudb@963 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 14:24:17 +00:00
Bradley C. Kuszmaul
4dfccf0d81
Get rid of a few more cases where childkeylens are used. Addresses #126 .
...
git-svn-id: file:///svn/tokudb@962 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 14:20:47 +00:00
Bradley C. Kuszmaul
85a62db892
Nothing uses the childkeylens now. So we'll be able to remove them next. Addresses #126 .
...
git-svn-id: file:///svn/tokudb@960 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 13:52: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
Rich Prohaska
230d0d4632
add DBC->get DB_NEXT_DUP. addresses #121
...
git-svn-id: file:///svn/tokudb@948 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-05 22:07:48 +00:00
Rich Prohaska
f6476e0171
fix the ncursors > 0 assert in the nonleaf expand code caused when the cursor path traverses the child at the split point. addresses #119
...
git-svn-id: file:///svn/tokudb@928 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-05 01:07:48 +00:00
Bradley C. Kuszmaul
accc92e4b0
Add some information needed for recovery. Changed the size of the serialization, and caused a new cursor bug to show up. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@927 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-04 22:18:21 +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
Rich Prohaska
b83bcb1be6
add DB_CURRENT. addresses #48
...
git-svn-id: file:///svn/tokudb@893 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-03 13:36:52 +00:00
Rich Prohaska
b7b40fc87d
flush buffers when a node has become too big after a child split. closes #51
...
git-svn-id: file:///svn/tokudb@867 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-01 13:12:56 +00:00
Rich Prohaska
cec87512aa
push down will get us partly home. addresses #51
...
git-svn-id: file:///svn/tokudb@862 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 17:40:04 +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
Rich Prohaska
be7474282c
add key and data size limit check in db->put. closes #50
...
git-svn-id: file:///svn/tokudb@832 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 19:32:53 +00:00
Bradley C. Kuszmaul
df410defa7
Rename the last bunch of symbols to toku_symbols. Closes #8 .
...
git-svn-id: file:///svn/tokudb@829 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 18:14:40 +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
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
9f54dcef61
Rename a bunch of symbols to toku_symbols. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@823 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 15:09:14 +00:00
Bradley C. Kuszmaul
6b2f1c61b7
Rename a bunch of symbols to toku_symbols. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@822 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 14:44:03 +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
Rich Prohaska
d074a42ec6
cursor DB_SET op should not change the key. closes #73
...
git-svn-id: file:///svn/tokudb@804 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 19:46:39 +00:00
Bradley C. Kuszmaul
2020f63610
A bunch of symbols that don't start with toku_ are made static or start with toku_. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@800 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 19:00:21 +00:00
Bradley C. Kuszmaul
2ff8410687
Fix indentation
...
git-svn-id: file:///svn/tokudb@784 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 14:51:55 +00:00
Rich Prohaska
8ff534e152
use kv-pair's to contain the pivot key and data. closes #37
...
git-svn-id: file:///svn/tokudb@770 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 18:16:45 +00:00
Rich Prohaska
2a8344c090
add tree flags to the node to drive serialization of pivots. addresses #5
...
git-svn-id: file:///svn/tokudb@769 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 15:22:56 +00:00
Bradley C. Kuszmaul
a9bae208c4
src/tests/test_log3.recover now works (can recover after inserting one thing into a BRT. Addresses #27 . Closes #43 .
...
git-svn-id: file:///svn/tokudb@767 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 10:48:31 +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
b93b2eec7d
The PRI macros actually seemed the cleanest way to fix this. Fixed #38 .
...
git-svn-id: file:///svn/tokudb@758 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 18:47:44 +00:00
Rich Prohaska
88378bda52
search in a BRT with duplicate keys is equivalent to a DB_SET cursor get.
...
Addresses #19
git-svn-id: file:///svn/tokudb@748 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-25 18:17:01 +00:00
Bradley C. Kuszmaul
80154022be
The recovered file is exactly the same as the original file for test_log2.tdb.
...
(The wrong LSN was being saved in the file. The recovered version was right.)
Addresses #27 .
(Also, it was broken, and that appears to be fixed.)
git-svn-id: file:///svn/tokudb@730 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-24 03:50:28 +00:00
Rich Prohaska
0d868bc7b4
close #17 dont put any DB_ flags in the tokudb header
...
git-svn-id: file:///svn/tokudb@707 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 01:05:00 +00:00
Bradley C. Kuszmaul
aab4d54f85
Log brtnode (but dumper cannot understand it yet.) Addresses #11
...
git-svn-id: file:///svn/tokudb@705 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-21 19:06:32 +00:00
Bradley C. Kuszmaul
5784ee45fb
Log header
...
git-svn-id: file:///svn/tokudb@699 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-21 13:07:49 +00:00
Yoni Fogel
facc1abc31
When checking openflags from an ondisk header, ignore DB_CREATE and DB_EXCL
...
git-svn-id: file:///svn/tokudb@695 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-20 22:07:25 +00:00
Bradley C. Kuszmaul
13f29b60cc
Make fopen parse, and log only the fname relative to the env, not the whole name with the env
...
git-svn-id: file:///svn/tokudb@689 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-20 21:20:05 +00:00
Bradley C. Kuszmaul
b904eec0d7
Make all external symbols in brt-verify.o start with toku_. Addresses #8
...
git-svn-id: file:///svn/tokudb@679 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-20 00:35:31 +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
Bradley C. Kuszmaul
ff277a4b43
Make all external symbols in brt-serialize.o start with toku_. Addresses #8
...
git-svn-id: file:///svn/tokudb@675 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-19 23:54:17 +00:00
Bradley C. Kuszmaul
d7288dff0b
Make all external symbols in cachefile.o be start with toku_. Addresses #8
...
git-svn-id: file:///svn/tokudb@674 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-19 23:47:44 +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
Yoni Fogel
f978d2859e
Modified tokudb to work with test_db_already_exists
...
git-svn-id: file:///svn/tokudb@643 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-19 16:30:50 +00:00
Rich Prohaska
ee3d071c03
fix 2 dup search bugs
...
git-svn-id: file:///svn/tokudb@642 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-19 16:09:30 +00:00
Rich Prohaska
9756a5df09
add dupsort insert, delete, lookup
...
git-svn-id: file:///svn/tokudb@634 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-19 00:46:09 +00:00
Bradley C. Kuszmaul
574016ffd3
More logging stuff
...
git-svn-id: file:///svn/tokudb@623 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-18 12:48:36 +00:00
Rich Prohaska
dfd26d869c
serialize pivotflags
...
git-svn-id: file:///svn/tokudb@608 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-17 13:23:32 +00:00
Rich Prohaska
5b24c06e48
fix bug 3: use the application's compare function in the pma rather than the default compare function
...
git-svn-id: file:///svn/tokudb@604 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-16 22:06:27 +00:00
Rich Prohaska
96b7ff0908
BRTNODEs no longer point to BRTs
...
git-svn-id: file:///svn/tokudb@602 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-16 20:34:13 +00:00
Yoni Fogel
db9d08dda5
THINGS DONE:
...
0 Readded missing files i.e. regression tests.
1
svn add the new test (test_db_remove_subdb)
Commit db->remove and the tokudb.bugs (bug 47 describes it)
2
Modified tests to use a test subdirectory for temp files,
removed unneeded flags to DB_ENV->open
test_db_dup.c
test_db_already_exists.c
test_db_close_no_open.c
test_db_open_notexist_reopen.c
3
Added bug 48 (memory leak in DB->remove
Need Valgrind to verify.
svn add: test_db_remove_memleak.c
git-svn-id: file:///svn/tokudb@579 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-15 19:09:31 +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