Bradley C. Kuszmaul
3e29f976cc
Fix valgrind problems caused by logging. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@941 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-05 18:22:42 +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
3ca8f1e01d
pma move logging works better. Addresses #27
...
git-svn-id: file:///svn/tokudb@920 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-04 17:59:03 +00:00
Bradley C. Kuszmaul
8c37306c4e
pma move logging works better
...
git-svn-id: file:///svn/tokudb@918 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-04 16:16:30 +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
Bradley C. Kuszmaul
9c336ba00c
Get rid of mdict (into .junk). Fixes #10 .
...
git-svn-id: file:///svn/tokudb@849 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 06:40:37 +00:00
Bradley C. Kuszmaul
9a8fd72c7e
associate implemented up to a point: put works, get doesn't. Addresses #48 .
...
git-svn-id: file:///svn/tokudb@848 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 06:27:49 +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
Rich Prohaska
ab2fbfa238
addresses #8
...
git-svn-id: file:///svn/tokudb@828 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 18:03:21 +00:00
Bradley C. Kuszmaul
8b48d70c9d
Rename a bunch of symbols to toku_symbols. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@827 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 15:41:46 +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
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
d6ed45950d
Add copyrights using #ident in the buildheader and db-benchmark-test and loadsome and bdb-examples dirs. Addresses #54 .
...
git-svn-id: file:///svn/tokudb@820 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 14:27:42 +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
67dc4d5e3e
addresses #8
...
git-svn-id: file:///svn/tokudb@807 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 20:51:16 +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
e4dcc3e9f8
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@801 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 19:09:24 +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
Bradley C. Kuszmaul
897e28c38a
Get rid of conflict on {{{index}}}. Fixes #56 .
...
git-svn-id: file:///svn/tokudb@782 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-28 14:21:22 +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
7bb03b5161
Still not right. Addresses #27
...
git-svn-id: file:///svn/tokudb@760 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 20:09:53 +00:00
Bradley C. Kuszmaul
773308d9d2
pma-test was failing after recent changes for recovery. Addresses #27
...
git-svn-id: file:///svn/tokudb@759 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 20:08: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
Yoni Fogel
b4e9133ffb
Typo fix in assert statement.
...
We were checking the 'write' system call instead of the 'do_write' variable.
git-svn-id: file:///svn/tokudb@755 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 15:39:38 +00:00
Yoni Fogel
3922fc2d89
Uses toku_txn_get_txnid instead of dereferencing.
...
Closes #35 .
git-svn-id: file:///svn/tokudb@753 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 14:54:33 +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
Rich Prohaska
c81c914777
run with -O0 on 32 bit linux creates a broken log_header.h file. Addresses #33
...
git-svn-id: file:///svn/tokudb@746 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-25 16:39:38 +00:00
Bradley C. Kuszmaul
ab3bdffaf3
Start logging an insert (but don't deal with the bt_compare issue yet. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@745 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-25 15:10:26 +00:00
Rich Prohaska
102719b272
logformat was crashing on RHEL5 machines. the contents of ap was being changed. addresses #33
...
git-svn-id: file:///svn/tokudb@742 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-25 14:32:52 +00:00
Bradley C. Kuszmaul
da2a69a411
Rename logdump to tdb_logprint. Closes #26 .
...
git-svn-id: file:///svn/tokudb@736 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-24 23:48:34 +00:00
Bradley C. Kuszmaul
561a36213b
Add len before each log entry. Closes #23 .
...
Also gets rid of most of the manual log code. The remaining code is tough to excise, so I'll call this closed. Closes #32 .
git-svn-id: file:///svn/tokudb@735 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-24 23:21:02 +00:00
Bradley C. Kuszmaul
fc6313556f
Whoops wrote too much.
...
git-svn-id: file:///svn/tokudb@731 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-24 03:56:02 +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
Bradley C. Kuszmaul
2a9b3b3d40
Recovery runs for test_log2's database. But the files are not quite the same. Addresses #27
...
git-svn-id: file:///svn/tokudb@728 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 20:36:03 +00:00
Bradley C. Kuszmaul
e17f972093
Implement recover. This version can scan the log, but doesn't actually recover. Addresses #27
...
git-svn-id: file:///svn/tokudb@727 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 18:27:50 +00:00
Bradley C. Kuszmaul
85336f49f3
Get rid of the manual commit code. Addresses #32
...
git-svn-id: file:///svn/tokudb@726 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 17:41:02 +00:00
Bradley C. Kuszmaul
e50a0fb140
New logformat code can now dump our base test. Addresses #11 .
...
git-svn-id: file:///svn/tokudb@725 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 17:16:26 +00:00